projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1acff44
)
Stop focus from moving if scroll lock is enabled.
author
Mikael Magnusson
<mikachu@comhem.se>
Mon, 23 Jul 2007 23:38:03 +0000
(
01:38
+0200)
committer
Mikael Magnusson
<mikachu@comhem.se>
Thu, 26 Jul 2007 19:11:07 +0000
(21:11 +0200)
Useful when some program decides to pop up a window every 2 seconds while you're chatting away on irc.
openbox/client.c
patch
|
blob
|
history
diff --git
a/openbox/client.c
b/openbox/client.c
index fe9c9c8babdc740a72f4649227be4c4c45496b92..613872a6119bbbe67a469ccab3c68f36cdf32e48 100644
(file)
--- a/
openbox/client.c
+++ b/
openbox/client.c
@@
-3549,6
+3549,13
@@
gboolean client_can_focus(ObClient *self)
gboolean client_focus(ObClient *self)
{
+ {
+ XkbStateRec state;
+ XkbGetState(ob_display, XkbUseCoreKbd, &state);
+ if (state.locked_mods & 128)
+ return FALSE;
+ }
+
/* we might not focus this window, so if we have modal children which would
be focused instead, bring them to this desktop */
client_bring_modal_windows(self);