summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 09:06:59 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-26 09:06:59 +0000
commit41d359f4e4205e7a0202897ae5f675bcbdb6147c (patch)
tree1b807305d89d32e812bdd770869d0071c83badb1 /beryl-plugins/src/wobbly.c
parente3319ce35fe20f7ec4770e0a325552829ef8b11f (diff)
downloadmarex-dev-41d359f4e4205e7a0202897ae5f675bcbdb6147c.tar.gz
marex-dev-41d359f4e4205e7a0202897ae5f675bcbdb6147c.tar.bz2
wobbly plugin: offscreen window awareness
git-svn-id: file:///beryl/trunk@3159 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index 826c4e9..849df72 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -2215,6 +2215,10 @@ static Bool isWobblyWin(CompWindow * w)
if (ww->model)
return TRUE;
+ /* avoid offscreen windows */
+ if (w->state & CompWindowStateOffscreenMask)
+ return FALSE;
+
/* avoid tiny windows */
if (w->width == 1 && w->height == 1)
return FALSE;