summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/thumbnail.c
diff options
context:
space:
mode:
authoronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-16 23:39:13 +0000
committeronestone <onestone@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-16 23:39:13 +0000
commit587f273369bd6a6af307cdacc8ff17cbca2f203e (patch)
tree08b2b7bcbbcebc8a706c469f2d60fe4c5d30cf0a /beryl-plugins/src/thumbnail.c
parentbeadab6c059f53c571aa337959158be1d8facb62 (diff)
downloadmarex-dev-587f273369bd6a6af307cdacc8ff17cbca2f203e.tar.gz
marex-dev-587f273369bd6a6af307cdacc8ff17cbca2f203e.tar.bz2
beryl-plugins: thumbnail: maybe a fix for bug #825
git-svn-id: file:///beryl/trunk@2743 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/thumbnail.c')
-rw-r--r--beryl-plugins/src/thumbnail.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/beryl-plugins/src/thumbnail.c b/beryl-plugins/src/thumbnail.c
index f0e81f2..016180b 100644
--- a/beryl-plugins/src/thumbnail.c
+++ b/beryl-plugins/src/thumbnail.c
@@ -439,11 +439,13 @@ thumbUpdateMouse (void *vs)
CompWindow *cw = s->windows;
CompWindow *found = NULL;
- for (;cw;cw = cw->next)
+ for (;cw && !found;cw = cw->next)
{
THUMB_WINDOW(cw);
if (!tw->ig.isSet)
continue;
+ if (cw->attrib.map_state != IsViewable && !cw->thumbPixmap)
+ continue;
if (rootX >= tw->ig.x && rootX < tw->ig.x + tw->ig.width &&
rootY >= tw->ig.y && rootY < tw->ig.y + tw->ig.height &&
checkPosition(cw))