"Handle" events during startup (FS#877)
commit12c1b0ce521e54266191fbb588e4dd69f9dfde33
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:34:30 +0000 (10 14:34 +0200)
tree090aaead8cd7d0fc5f8a7673e7495c8c2d19aee8
parent6c6e3a22f867b88136d51320cfc2940b404535e0
"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