mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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=/trunk/; revision=3156
This commit is contained in:
parent
921661e91d
commit
dda3c2bee6
10
ChangeLog
10
ChangeLog
@ -1,4 +1,12 @@
|
|||||||
2004-04-04 Elijah Newren <newren gmail com>
|
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-04 Elijah Newren <newren gmail com>
|
||||||
|
|
||||||
Fix lots of little issues with min/max constraints and size
|
Fix lots of little issues with min/max constraints and size
|
||||||
increment constraints. Fixes #329152, #418395, and possibly
|
increment constraints. Fixes #329152, #418395, and possibly
|
||||||
|
12
src/window.c
12
src/window.c
@ -3271,6 +3271,18 @@ meta_window_move_resize_internal (MetaWindow *window,
|
|||||||
!(need_resize_client || need_resize_frame))
|
!(need_resize_client || need_resize_frame))
|
||||||
need_configure_notify = TRUE;
|
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
|
/* The rest of this function syncs our new size/pos with X as
|
||||||
* efficiently as possible
|
* efficiently as possible
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user