# HG changeset patch # User rubidium # Date 2011-08-21 16:48:31 # Node ID 86498100a18650e9dd30a7ebb7d85c63b9e306f8 # Parent d528d674a0638fc5135208119f2a58d44dd02feb (svn r22803) -Fix (r22796): clicking should not work either when hiding windows diff --git a/src/window.cpp b/src/window.cpp --- 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; } }