]> git.eshelyaron.com Git - emacs.git/commitdiff
Update frame positions on Haiku after changing Z group
authorPo Lu <luangruo@yahoo.com>
Mon, 30 May 2022 07:54:22 +0000 (07:54 +0000)
committerPo Lu <luangruo@yahoo.com>
Mon, 30 May 2022 07:55:13 +0000 (07:55 +0000)
* src/haiku_support.cc (EmacsScreenChangeMonitor): Fix comment.
* src/haikufns.c (haiku_set_z_group): Ask for a position update,
since changing the Z group might change the feel of the window.

src/haiku_support.cc
src/haikufns.c

index c1617c86cc7aac6b3d889430c0f0f318e7ab4736..2411a7b539bd4458e111107b22c8b39dff1a7c67 100644 (file)
@@ -542,8 +542,8 @@ public:
 
     previous_screen_frame = screen.Frame ();
 
-    /* Immediately show this window upon creation.  It will end up
-       hidden since there are no windows in its subset.  */
+    /* Immediately show this window upon creation.  It will not steal
+       the focus or become visible.  */
     Show ();
 
     if (!LockLooper ())
index 86173c8e867ddee87a8a081a14d509cfbe9e0c13..6a79eede0e7bf75bc8e9035f6e7477602a1637b3 100644 (file)
@@ -533,8 +533,12 @@ haiku_set_z_group (struct frame *f, Lisp_Object new_value,
     rc = 0;
 
   unblock_input ();
+
   if (!rc)
     error ("Invalid z-group specification");
+
+  /* Setting the Z-group can change the frame's decorator.  */
+  haiku_update_after_decoration_change (f);
 }
 
 static void