summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElijah Newren <newren@gmail.com>2005-05-26 20:14:15 +0000
committerElijah Newren <newren@src.gnome.org>2005-05-26 20:14:15 +0000
commitbe499619443ddffd4fbb18c77629e0e5a12e1b41 (patch)
treef8b6fca2592e1bdcc38d0b6075b22be279190084 /src
parent7b416a0a2d8ebb2223dc90b9cb081f3222962952 (diff)
downloadmetacity-be499619443ddffd4fbb18c77629e0e5a12e1b41.tar.gz
Patch from Greg Hudson to make sure window position is calculated
2005-05-26 Elijah Newren <newren@gmail.com> * 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.
Diffstat (limited to 'src')
-rw-r--r--src/window.c3
1 files changed, 2 insertions, 1 deletions
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.