summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-22 10:42:18 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-22 10:42:18 +0000
commit9ec7bf29baed9f181ad252368fcece7392818373 (patch)
tree8d0774e21e4d64d13082701e8d5067e6af8e6118 /beryl-plugins/src/wobbly.c
parentc8f584471d8eeac02a70cefc7f92453188866bb9 (diff)
downloadmarex-dev-9ec7bf29baed9f181ad252368fcece7392818373.tar.gz
marex-dev-9ec7bf29baed9f181ad252368fcece7392818373.tar.bz2
wobbly plugin: only keep track of the first grabbed window, not the last one
git-svn-id: file:///beryl/trunk@2946 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index 962439e..879fd42 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -3140,8 +3140,11 @@ wobblyWindowGrabNotify(CompWindow * w,
WOBBLY_SCREEN(w->screen);
WOBBLY_DISPLAY(w->screen->display);
- ws->grabMask = mask;
- ws->grabWindow = w;
+ if (!ws->grabWindow)
+ {
+ ws->grabMask = mask;
+ ws->grabWindow = w;
+ }
if (ws->opt[WOBBLY_SCREEN_OPTION_MOVE_EFFECT].value.b)
{
@@ -3238,8 +3241,11 @@ static void wobblyWindowUngrabNotify(CompWindow * w)
WOBBLY_SCREEN(w->screen);
WOBBLY_WINDOW(w);
- ws->grabMask = 0;
- ws->grabWindow = NULL;
+ if (ws->grabWindow == w)
+ {
+ ws->grabMask = 0;
+ ws->grabWindow = NULL;
+ }
if (ww->grabbed)
{