aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPo Lu2022-05-30 07:54:22 +0000
committerPo Lu2022-05-30 07:55:13 +0000
commit3eca30bc50472c46896fc790ade9aaf0c26ac756 (patch)
treeecdb83f61ec4e099458f6a83051a846ab3496f84 /src
parentd8adce56a0a9169c3ad6cb6f51fc116f5ccd127c (diff)
downloademacs-3eca30bc50472c46896fc790ade9aaf0c26ac756.tar.gz
emacs-3eca30bc50472c46896fc790ade9aaf0c26ac756.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/haiku_support.cc4
-rw-r--r--src/haikufns.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/haiku_support.cc b/src/haiku_support.cc
index c1617c86cc7..2411a7b539b 100644
--- a/src/haiku_support.cc
+++ b/src/haiku_support.cc
@@ -542,8 +542,8 @@ public:
542 542
543 previous_screen_frame = screen.Frame (); 543 previous_screen_frame = screen.Frame ();
544 544
545 /* Immediately show this window upon creation. It will end up 545 /* Immediately show this window upon creation. It will not steal
546 hidden since there are no windows in its subset. */ 546 the focus or become visible. */
547 Show (); 547 Show ();
548 548
549 if (!LockLooper ()) 549 if (!LockLooper ())
diff --git a/src/haikufns.c b/src/haikufns.c
index 86173c8e867..6a79eede0e7 100644
--- a/src/haikufns.c
+++ b/src/haikufns.c
@@ -533,8 +533,12 @@ haiku_set_z_group (struct frame *f, Lisp_Object new_value,
533 rc = 0; 533 rc = 0;
534 534
535 unblock_input (); 535 unblock_input ();
536
536 if (!rc) 537 if (!rc)
537 error ("Invalid z-group specification"); 538 error ("Invalid z-group specification");
539
540 /* Setting the Z-group can change the frame's decorator. */
541 haiku_update_after_decoration_change (f);
538} 542}
539 543
540static void 544static void