summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-12-02 09:21:55 +0100
committerDanny Baumann <dannybaumann@web.de>2008-12-02 09:21:55 +0100
commita462341b85da36d67c6ba27ab6f24eee6d69a2c4 (patch)
tree4499d42ae80840e5d28f978bdd02675f37d40f0c
parentf628dcca182992afbfe340da02441b0102bcac55 (diff)
downloadwinrules-a462341b85da36d67c6ba27ab6f24eee6d69a2c4.tar.gz
winrules-a462341b85da36d67c6ba27ab6f24eee6d69a2c4.tar.bz2
Fix "No focus" rule.
-rw-r--r--winrules.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/winrules.c b/winrules.c
index 4344906..4ab0356 100644
--- a/winrules.c
+++ b/winrules.c
@@ -144,9 +144,9 @@ winrulesSetNoFocus (CompWindow *w,
ww->protocolSetMask |= (w->protocols &
CompWindowProtocolTakeFocusMask);
newProtocol = w->protocols & ~CompWindowProtocolTakeFocusMask;
- ww->oldInputHint = w->inputHint;
- w->inputHint = FALSE;
}
+ ww->oldInputHint = w->inputHint;
+ w->inputHint = FALSE;
}
else if (ww->oldInputHint ||
(ww->protocolSetMask & CompWindowProtocolTakeFocusMask))
@@ -157,8 +157,11 @@ winrulesSetNoFocus (CompWindow *w,
w->inputHint = ww->oldInputHint;
}
- if (newProtocol != w->protocols)
+ if (newProtocol != w->protocols)
+ {
winrulesSetProtocols (w->screen->display, newProtocol, w->id);
+ w->protocols = newProtocol;
+ }
}
static void