summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-04 09:28:41 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-04 09:28:41 +0200
commitb3dfc5d5341fdbcfbf301ed1019810fdb117e269 (patch)
treec6c4fbe0a6df5280b33866827d9b26f8dd5a8119 /plugins
parent4086ea3fe4a8f8c620c0f2d71a64bde87540b40d (diff)
Check for active screen grabs before unsnapping a maximized window.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/move.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/plugins/move.c b/plugins/move.c
index e8d6c5e9..c20225e9 100644
--- a/plugins/move.c
+++ b/plugins/move.c
@@ -406,23 +406,26 @@ moveHandleMotionEvent (CompScreen *s,
{
if ((yRoot - workArea.y) - ms->snapOffY >= SNAP_OFF)
{
- int width = w->serverWidth;
+ if (!otherScreenGrabExist (s, "move", 0))
+ {
+ int width = w->serverWidth;
- w->saveMask |= CWX | CWY;
+ w->saveMask |= CWX | CWY;
- if (w->saveMask & CWWidth)
- width = w->saveWc.width;
+ if (w->saveMask & CWWidth)
+ width = w->saveWc.width;
- w->saveWc.x = xRoot - (width >> 1);
- w->saveWc.y = yRoot + (w->input.top >> 1);
+ w->saveWc.x = xRoot - (width >> 1);
+ w->saveWc.y = yRoot + (w->input.top >> 1);
- md->x = md->y = 0;
+ md->x = md->y = 0;
- maximizeWindow (w, 0);
+ maximizeWindow (w, 0);
- ms->snapOffY = ms->snapBackY;
+ ms->snapOffY = ms->snapBackY;
- return;
+ return;
+ }
}
}
else if (ms->origState & CompWindowStateMaximizedVertMask)