summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-09-09 16:19:30 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-09-09 16:19:30 +0800
commitac0d37ffb3441a4aed116d6adf86c4de0f84bd64 (patch)
tree8b9b200fe7724e84e64e7a24e96e3a95af16599a /src
parentf3c3a70ed66bc2b73ffb3858f16d30a352359daf (diff)
downloadunity-window-decorator-ac0d37ffb3441a4aed116d6adf86c4de0f84bd64.tar.gz
unity-window-decorator-ac0d37ffb3441a4aed116d6adf86c4de0f84bd64.tar.bz2
Force input focus on button 1/2/3 press.
Sometimes there is a case where the window is active on one screen already, and because compiz is not multi-screen aware, when another window is focussed on another screen, the window will continue to be "active" but not focussed. Previously, when clicking on this window again, the window would not be focussed again since it was already active. This commit forces input focus regardless of the "active" state
Diffstat (limited to 'src')
-rw-r--r--src/event.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/event.cpp b/src/event.cpp
index e7c99fc..15768d1 100644
--- a/src/event.cpp
+++ b/src/event.cpp
@@ -1143,9 +1143,8 @@ CompScreen::handleEvent (XEvent *event)
w->updateAttributes (
CompStackingUpdateModeAboveFullscreen);
- if (w->id () != priv->activeWindow)
- if (!(w->type () & CompWindowTypeDockMask))
- w->moveInputFocusTo ();
+ if (!(w->type () & CompWindowTypeDockMask))
+ w->moveInputFocusTo ();
}
}