From 505282697a9b073c8fa0f0108c905df65489789c Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 17 Aug 2001 22:44:36 +0000 Subject: [PATCH] fix for StaticGravity 2001-08-17 Havoc Pennington * src/window.c (meta_window_get_gravity_position): fix for StaticGravity --- ChangeLog | 5 +++++ src/window.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 56295865e..ee87554c7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-08-17 Havoc Pennington + + * src/window.c (meta_window_get_gravity_position): fix for + StaticGravity + 2001-08-09 Havoc Pennington * src/window.c (meta_window_configure_request): Honor USPosition diff --git a/src/window.c b/src/window.c index 400920a05..e8a0d0126 100644 --- a/src/window.c +++ b/src/window.c @@ -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;