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:
Havoc Pennington 2001-08-17 22:44:36 +00:00 committed by Havoc Pennington
parent 6768aefb9d
commit 505282697a
2 changed files with 9 additions and 2 deletions

View File

@ -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> 2001-08-09 Havoc Pennington <hp@pobox.com>
* src/window.c (meta_window_configure_request): Honor USPosition * src/window.c (meta_window_configure_request): Honor USPosition

View File

@ -1616,7 +1616,9 @@ meta_window_get_gravity_position (MetaWindow *window,
w = window->rect.width; w = window->rect.width;
h = window->rect.height; 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; frame_extents = window->rect;
else else
frame_extents = window->frame->rect; frame_extents = window->frame->rect;
@ -1954,7 +1956,7 @@ meta_window_configure_request (MetaWindow *window,
* USPosition at map time. * USPosition at map time.
*/ */
(window->size_hints.flags & USPosition)) (window->size_hints.flags & USPosition))
{ {
if (event->xconfigurerequest.value_mask & CWX) if (event->xconfigurerequest.value_mask & CWX)
x = event->xconfigurerequest.x; x = event->xconfigurerequest.x;