diff options
author | Danny Baumann <dannybaumann@web.de> | 2009-02-04 08:20:32 +0100 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2009-02-04 08:48:08 +0100 |
commit | 76aa8b40c90914ed6c886cf4373b0512025cde70 (patch) | |
tree | 306dc4ab3ed37bdc69fba193b2fb60de545f634b | |
parent | 2a37340f9610e7f80a66ed6ab48190c181784f6b (diff) |
Fix window resize validation. - Don't do any validation if window geometry wasn't actually changed. - Fix calculations for windows that had the left and/or top edges offscreen before the validation. Reference: http://bugs.freedesktop.org/show_bug.cgi?id=19516
-rw-r--r-- | plugins/place.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/place.c b/plugins/place.c index 6447d75d..5a5d8070 100644 --- a/plugins/place.c +++ b/plugins/place.c @@ -1280,6 +1280,9 @@ placeValidateWindowResizeRequest (CompWindow *w, WRAP (ps, s, validateWindowResizeRequest, placeValidateWindowResizeRequest); + if (*mask == 0) + return; + if (source == ClientTypePager) return; @@ -1307,12 +1310,7 @@ placeValidateWindowResizeRequest (CompWindow *w, sizes as we don't need to validate movements to other viewports; we are only interested in inner-viewport movements */ x = xwc->x % s->width; - if (x < 0) - x += s->width; - y = xwc->y % s->height; - if (y < 0) - y += s->height; left = x - w->input.left; right = x + xwc->width + w->input.right; |