summaryrefslogtreecommitdiff
path: root/plugins/compiztoolbox
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-09-08 19:27:53 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-09-08 19:27:53 +0800
commit1b2b54feb3dc2caa141fbe275ca6de1ae6ea4ad5 (patch)
tree94ef5b0d97c610b2846d71d72d3baf33f2c6c8e4 /plugins/compiztoolbox
parent5be9ced1e10caa39c768c2952bde032dffd30399 (diff)
downloadcompiz-with-glib-mainloop-1b2b54feb3dc2caa141fbe275ca6de1ae6ea4ad5.tar.gz
compiz-with-glib-mainloop-1b2b54feb3dc2caa141fbe275ca6de1ae6ea4ad5.tar.bz2
compiztoolbox.cpp: Move input focus to highlighted windows so it is possible to alt-f4 them
switcher.cpp: Move input focus back to last active window if switcher action is cancelled
Diffstat (limited to 'plugins/compiztoolbox')
-rw-r--r--plugins/compiztoolbox/src/compiztoolbox.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/compiztoolbox/src/compiztoolbox.cpp b/plugins/compiztoolbox/src/compiztoolbox.cpp
index 68fbd2a..ccaab6b 100644
--- a/plugins/compiztoolbox/src/compiztoolbox.cpp
+++ b/plugins/compiztoolbox/src/compiztoolbox.cpp
@@ -129,7 +129,10 @@ BaseSwitchScreen::setSelectedWindowHint ()
CompOption::Value v;
if (selectedWindow && !selectedWindow->destroyed ())
+ {
selectedWindowId = selectedWindow->id ();
+ selectedWindow->moveInputFocusTo ();
+ }
v = CompOption::Value ((int) selectedWindowId);
opts = selectWinAtom.getReadTemplate ();