From dbf2623e8775c399a3f5b1bf9cb947ead5d126ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Fri, 19 Oct 2012 23:37:37 +0200 Subject: [PATCH] respect screen rule in configure requests REVIEW: 106960 --- geometry.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index d4c94510f6..e9235505da 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1635,6 +1635,9 @@ void Client::configureRequest(int value_mask, int rx, int ry, int rw, int rh, in nh = rh; QSize ns = sizeForClientSize(QSize(nw, nh)); // enforces size if needed new_pos = rules()->checkPosition(new_pos); + int newScreen = workspace()->screenNumber(QRect(new_pos, ns).center()); + if (newScreen != rules()->checkScreen(newScreen)) + return; // not allowed by rule QRect orig_geometry = geometry(); GeometryUpdatesBlocker blocker(this);