prioritize UnmapEvent-s
This commit is contained in:
parent
4ad1f8a54a
commit
cbf85c1902
15
awesome.c
15
awesome.c
|
@ -402,9 +402,18 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
while(XPending(dpy))
|
while(XPending(dpy))
|
||||||
{
|
{
|
||||||
XNextEvent(dpy, &ev);
|
/* Unmap are prio otherwise we risk to SetInputFocus on unmapped
|
||||||
if(handler[ev.type])
|
* windows */
|
||||||
handler[ev.type](&ev); /* call handler */
|
while(XCheckMaskEvent(dpy, UnmapNotify, &ev))
|
||||||
|
if(handler[ev.type])
|
||||||
|
handler[ev.type](&ev);
|
||||||
|
|
||||||
|
if(XPending(dpy))
|
||||||
|
{
|
||||||
|
XNextEvent(dpy, &ev);
|
||||||
|
if(handler[ev.type])
|
||||||
|
handler[ev.type](&ev);
|
||||||
|
}
|
||||||
|
|
||||||
/* drop events requested to */
|
/* drop events requested to */
|
||||||
if(globalconf.drop_events)
|
if(globalconf.drop_events)
|
||||||
|
|
Loading…
Reference in New Issue