Fixed order of function calls
You must grab the keyboard after reading the input.
This commit is contained in:
parent
697f63c474
commit
465d07dbe9
6
xmenu.c
6
xmenu.c
|
@ -141,8 +141,6 @@ main(int argc, char *argv[])
|
||||||
getresources();
|
getresources();
|
||||||
setupdc();
|
setupdc();
|
||||||
setupgeom();
|
setupgeom();
|
||||||
if (override_redirect)
|
|
||||||
setupgrab();
|
|
||||||
|
|
||||||
/* generate menus and recalculate them */
|
/* generate menus and recalculate them */
|
||||||
parsestdin();
|
parsestdin();
|
||||||
|
@ -151,6 +149,10 @@ main(int argc, char *argv[])
|
||||||
calcscreengeom();
|
calcscreengeom();
|
||||||
calcmenu(rootmenu);
|
calcmenu(rootmenu);
|
||||||
|
|
||||||
|
/* grab mouse and keyboard */
|
||||||
|
if (override_redirect)
|
||||||
|
setupgrab();
|
||||||
|
|
||||||
/* map root menu */
|
/* map root menu */
|
||||||
currmenu = rootmenu;
|
currmenu = rootmenu;
|
||||||
XMapWindow(dpy, rootmenu->win);
|
XMapWindow(dpy, rootmenu->win);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user