summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2007-04-04 23:54:56 +0000
committerElijah Newren <newren@src.gnome.org>2007-04-04 23:54:56 +0000
commit3a3bf5da6f709f37b5cc994f3ca4d44ba5cc7cb3 (patch)
tree74cfcc46a74af8f8533cd4e5c122670a51b97eac
parent719214c0d5a70f019becda97f483d844a9d6ba2d (diff)
downloadmetacity-3a3bf5da6f709f37b5cc994f3ca4d44ba5cc7cb3.tar.gz
send synthetic configurenotify events also in response to MapRequest
2007-04-04 Elijah Newren <newren gmail com> * src/window.c (meta_window_move_resize_internal): send synthetic configurenotify events also in response to MapRequest events when the window has a frame and the application specifies PPosition or UPosition hints. I believe they are already sent for all other cases. Should fix #322840. Fixes the testcase at least. :) svn path=/branches/gnome-2-18/; revision=3157
-rw-r--r--ChangeLog8
-rw-r--r--src/window.c12
2 files changed, 20 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1156cd93..152cee05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2007-04-04 Elijah Newren <newren gmail com>
+
+ * src/window.c (meta_window_move_resize_internal): send synthetic
+ configurenotify events also in response to MapRequest events when
+ the window has a frame and the application specifies PPosition or
+ UPosition hints. I believe they are already sent for all other
+ cases. Should fix #322840. Fixes the testcase at least. :)
+
2007-04-03 Elijah Newren <newren gmail com>
* src/keybindings.c (handle_panel_keybinding): turn mouse_mode off
diff --git a/src/window.c b/src/window.c
index 626a875b..d70dca0c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3193,6 +3193,18 @@ meta_window_move_resize_internal (MetaWindow *window,
if ((need_move_client || need_move_frame) &&
!(need_resize_client || need_resize_frame))
need_configure_notify = TRUE;
+
+ /* MapRequest events with a PPosition or UPosition hint with a frame
+ * are moved by metacity without resizing; send a configure notify
+ * in such cases. See #322840. (Note that window->constructing is
+ * only true iff this call is due to a MapRequest, and when
+ * PPosition/UPosition hints aren't set, metacity seems to send a
+ * ConfigureNotify anyway due to the above code.)
+ */
+ if (window->constructing && window->frame &&
+ ((window->size_hints.flags & PPosition) ||
+ (window->size_hints.flags & USPosition)))
+ need_configure_notify = TRUE;
/* The rest of this function syncs our new size/pos with X as
* efficiently as possible