From be499619443ddffd4fbb18c77629e0e5a12e1b41 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Thu, 26 May 2005 20:14:15 +0000 Subject: Patch from Greg Hudson to make sure window position is calculated 2005-05-26 Elijah Newren * src/window.c (meta_window_configure_request): Patch from Greg Hudson to make sure window position is calculated correctly for reconfigure requests when part of the XWindowChanges structure is uninitialized. Fixes #305257. --- ChangeLog | 7 +++++++ src/window.c | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4789026c..476fe618 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-05-26 Elijah Newren + + * src/window.c (meta_window_configure_request): Patch from Greg + Hudson to make sure window position is calculated correctly for + reconfigure requests when part of the XWindowChanges structure is + uninitialized. Fixes #305257. + 2005-05-26 Ray Strode Actually commit the stuff mentioned in the last diff --git a/src/window.c b/src/window.c index c6afcc8e..d5bd0ac1 100644 --- a/src/window.c +++ b/src/window.c @@ -4016,7 +4016,8 @@ meta_window_configure_request (MetaWindow *window, * and give windows a border of 0. But we save the * requested border here. */ - window->border_width = event->xconfigurerequest.border_width; + if (event->xconfigurerequest.value_mask & CWBorderWidth) + window->border_width = event->xconfigurerequest.border_width; /* We're ignoring the value_mask here, since sizes * not in the mask will be the current window geometry. -- cgit v1.2.1