projects
/
xmenu
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
697f63c
)
Fixed order of function calls
author
phillbush
<phillbush@cock.li>
Tue, 19 May 2020 02:05:14 +0000
(23:05 -0300)
committer
phillbush
<phillbush@cock.li>
Tue, 19 May 2020 02:05:14 +0000
(23:05 -0300)
You must grab the keyboard after reading the input.
xmenu.c
patch
|
blob
|
blame
|
history
diff --git
a/xmenu.c
b/xmenu.c
index
82617d7
..
8d40ee1
100644
(file)
--- a/
xmenu.c
+++ b/
xmenu.c
@@
-141,8
+141,6
@@
main(int argc, char *argv[])
getresources();
setupdc();
setupgeom();
- if (override_redirect)
- setupgrab();
/* generate menus and recalculate them */
parsestdin();
@@
-151,6
+149,10
@@
main(int argc, char *argv[])
calcscreengeom();
calcmenu(rootmenu);
+ /* grab mouse and keyboard */
+ if (override_redirect)
+ setupgrab();
+
/* map root menu */
currmenu = rootmenu;
XMapWindow(dpy, rootmenu->win);