awesome/objects
Uli Schlachter bf76b3842b Ungrab the server before parsing the config
This moves the loading of the rc.lua and managing of pre-existing clients to
after we ungrab the server during startup. To make sure we have no races with
clients which start up parallel to awesome, we do the QueryTree for all the
clients that we have to manage before the ungrab, but start managing the clients
only after the ungrab.

This means that we have already selected our event mask on the root window in
scan() and thus received an UnmapNotify event when we reparent windows into a
frame window. This has the effect that we immediately unmanage the client again,
whoops.

To fix this, we grab the server again and remove our event mask on the root
window again while we reparent.

This should hopefully fix all cases where we deadlock during startup because
pulseaudio wants to talk to the X server, but is being ignored because we have
the server grabbed while at the same time we are waiting for pulseaudio.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-10-19 15:11:11 +02:00
..
button.c remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
button.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
client.c Ungrab the server before parsing the config 2011-10-19 15:11:11 +02:00
client.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
drawin.c drawin: Don't cause X11 errors during allocation 2011-09-12 19:38:20 +02:00
drawin.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
key.c remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
key.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
tag.c remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
tag.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
timer.c remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
timer.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
window.c remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
window.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00