summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-08-17 22:44:36 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-08-17 22:44:36 +0000
commit505282697a9b073c8fa0f0108c905df65489789c (patch)
tree6e05e2c6f7880b03d6197d748aa99b2fdb04ea47
parent6768aefb9d8c535c48039f4bf1f4260fd6b4cdaa (diff)
downloadmetacity-505282697a9b073c8fa0f0108c905df65489789c.tar.gz
metacity-505282697a9b073c8fa0f0108c905df65489789c.tar.bz2
fix for StaticGravity
2001-08-17 Havoc Pennington <hp@redhat.com> * src/window.c (meta_window_get_gravity_position): fix for StaticGravity
-rw-r--r--ChangeLog5
-rw-r--r--src/window.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5629586..ee87554 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/window.c b/src/window.c
index 400920a..e8a0d01 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;