projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
838f76c
)
grab the keyboard not the server!
author
Dana Jansens
<danakj@orodu.net>
Tue, 18 Mar 2003 20:02:09 +0000
(20:02 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 18 Mar 2003 20:02:09 +0000
(20:02 +0000)
plugins/keyboard/keyboard.c
patch
|
blob
|
history
diff --git
a/plugins/keyboard/keyboard.c
b/plugins/keyboard/keyboard.c
index f110e18490220063e74cc54069c7a81a6603a8bb..05481b53b5037b7638550a5835cf275d04645b0b 100644
(file)
--- a/
plugins/keyboard/keyboard.c
+++ b/
plugins/keyboard/keyboard.c
@@
-34,7
+34,7
@@
static void reset_chains()
curpos = NULL;
if (grabbed) {
grabbed = FALSE;
- grab_
server
(FALSE);
+ grab_
keyboard
(FALSE);
}
}
@@
-111,7
+111,7
@@
static void press(ObEvent *e, void *foo)
if (p->first_child != NULL) { /* part of a chain */
/* XXX TIMER */
if (!grabbed) {
- grab_
server
(TRUE);
+ grab_
keyboard
(TRUE);
grabbed = TRUE;
XAllowEvents(ob_display, AsyncKeyboard, CurrentTime);
}