summaryrefslogtreecommitdiff
path: root/plugins/switcher
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-07 18:03:25 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-07 18:03:25 +0800
commitbe2474f212eebb7b1dc9457b7a4b373d1fd4fa58 (patch)
tree7753c00967cc43ebd158b5b4fc9787ba50fb1f87 /plugins/switcher
parent132f4c5c1344aba1d0f33bde343afaf3e651c1d7 (diff)
downloadcompiz-with-glib-mainloop-be2474f212eebb7b1dc9457b7a4b373d1fd4fa58.tar.gz
compiz-with-glib-mainloop-be2474f212eebb7b1dc9457b7a4b373d1fd4fa58.tar.bz2
Switcher: prevent simulataneous plugin uses that don't make sense.
Forward port 1974f9b5bfbab24023a0a647b606eedccbb83d04 to master
Diffstat (limited to 'plugins/switcher')
-rw-r--r--plugins/switcher/src/switcher.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/switcher/src/switcher.cpp b/plugins/switcher/src/switcher.cpp
index 58fe35b..7a08aaa 100644
--- a/plugins/switcher/src/switcher.cpp
+++ b/plugins/switcher/src/switcher.cpp
@@ -79,9 +79,9 @@ SwitchScreen::updateWindowList (int count)
XWindowChanges xwc;
unsigned int valueMask = 0;
-
+
valueMask |= (CWX | CWY | CWWidth | CWHeight);
-
+
xwc.x = x - WINDOW_WIDTH (count) / 2;
xwc.y = y - WINDOW_HEIGHT / 2;
xwc.width = WINDOW_WIDTH (count);
@@ -207,7 +207,7 @@ SwitchScreen::initiate (SwitchWindowSelection selection,
{
int count;
- if (screen->otherGrabExist ("switcher", "scale", "cube", NULL))
+ if (screen->otherGrabExist ("switcher", NULL))
return;
this->selection = selection;
@@ -380,11 +380,11 @@ switchTerminate (CompAction *action,
{
ss->selectedWindow = NULL;
ss->zoomedWindow = NULL;
-
+
if (screen->activeWindow () != ss->lastActiveWindow)
{
CompWindow *w = screen->findWindow (ss->lastActiveWindow);
-
+
if (w)
w->moveInputFocusTo ();
}