From 76aa8b40c90914ed6c886cf4373b0512025cde70 Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Wed, 4 Feb 2009 08:20:32 +0100 Subject: 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 --- plugins/place.c | 8 +++----- 1 file 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; -- cgit v1.2.3