emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 3eca30bc50: Update frame positions on Haiku after changing Z grou


From: Po Lu
Subject: master 3eca30bc50: Update frame positions on Haiku after changing Z group
Date: Mon, 30 May 2022 03:55:54 -0400 (EDT)

branch: master
commit 3eca30bc50472c46896fc790ade9aaf0c26ac756
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Update frame positions on Haiku after changing Z group
    
    * 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 | 4 ++--
 src/haikufns.c       | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index c1617c86cc..2411a7b539 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -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 ())
diff --git a/src/haikufns.c b/src/haikufns.c
index 86173c8e86..6a79eede0e 100644
--- a/src/haikufns.c
+++ b/src/haikufns.c
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]