mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
fix for StaticGravity
2001-08-17 Havoc Pennington <hp@redhat.com> * src/window.c (meta_window_get_gravity_position): fix for StaticGravity
This commit is contained in:
parent
6768aefb9d
commit
505282697a
@ -1,3 +1,8 @@
|
||||
2001-08-17 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* src/window.c (meta_window_get_gravity_position): fix for
|
||||
StaticGravity
|
||||
|
||||
2001-08-09 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* src/window.c (meta_window_configure_request): Honor USPosition
|
||||
|
@ -1616,7 +1616,9 @@ meta_window_get_gravity_position (MetaWindow *window,
|
||||
w = window->rect.width;
|
||||
h = window->rect.height;
|
||||
|
||||
if (window->frame == NULL)
|
||||
if (window->frame == NULL ||
|
||||
/* ignore frame for static gravity */
|
||||
window->size_hints.win_gravity == StaticGravity)
|
||||
frame_extents = window->rect;
|
||||
else
|
||||
frame_extents = window->frame->rect;
|
||||
@ -1954,7 +1956,7 @@ meta_window_configure_request (MetaWindow *window,
|
||||
* USPosition at map time.
|
||||
*/
|
||||
(window->size_hints.flags & USPosition))
|
||||
{
|
||||
{
|
||||
if (event->xconfigurerequest.value_mask & CWX)
|
||||
x = event->xconfigurerequest.x;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user