From 81e352b4b6f7f72715646c7c39d3aec4100ea917 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 21 Aug 2011 16:48:31 +0000 Subject: (svn r22803) -Fix (r22796): clicking should not work either when hiding windows --- src/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index 748ed8746..e512eb43a 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -1350,7 +1350,7 @@ Window *FindWindowFromPt(int x, int y) { Window *w; FOR_ALL_WINDOWS_FROM_FRONT(w) { - if (IsInsideBS(x, w->left, w->width) && IsInsideBS(y, w->top, w->height)) { + if (MayBeShown(w) && IsInsideBS(x, w->left, w->width) && IsInsideBS(y, w->top, w->height)) { return w; } } -- cgit v1.2.3-70-g09d2