summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blackbox.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/blackbox.cc b/src/blackbox.cc
index ed12c559..efb782a5 100644
--- a/src/blackbox.cc
+++ b/src/blackbox.cc
@@ -574,6 +574,8 @@ void Blackbox::process_event(XEvent *e) {
has moved to a known window.
*/
e->xfocus.window = None;
+
+ no_focus = False; // focusing is back on
}
break;
@@ -682,8 +684,10 @@ void Blackbox::process_event(XEvent *e) {
if (win->isIconic())
win->deiconify(False, False);
if (! win->isStuck() &&
- (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID()))
+ (win->getWorkspaceNumber() != screen->getCurrentWorkspaceID())) {
+ no_focus = True;
screen->changeWorkspaceID(win->getWorkspaceNumber());
+ }
if (win->isVisible() && win->setInputFocus()) {
win->getScreen()->getWorkspace(win->getWorkspaceNumber())->
raiseWindow(win);