"Handle" events during startup (FS#877)
commit10186a7a29f75e6a450e3137e6a71b5aa48a495d
authorUli Schlachter <psychon@znc.in>
Sun, 10 Apr 2011 12:28:34 +0000 (10 14:28 +0200)
committerUli Schlachter <psychon@znc.in>
Sun, 10 Apr 2011 12:28:34 +0000 (10 14:28 +0200)
tree595dc40dd70dd588f491a202be9363bd9d102a31
parent9f8af0ae6db085570f48cc77a9fed94c918876fb
"Handle" events during startup (FS#877)

awesome.c contains this comment:

    There can be no events yet, so if his function returns something, it must be
    an error.

Sadly, this wasn't true. It seems like something managed to generate
MappingNotify events (no idea how).

Fix this by discarding all pending events after our GrabServer, but before we
ask for SubstructureRedirect on the root window.

Signed-off-by: Uli Schlachter <psychon@znc.in>
awesome.c