• Keith Packard's avatar
    Permit only one Xlib thread to block waiting for events · bedfe682
    Keith Packard authored
    As Xlib queues events internally, we must prevent multiple Xlib threads from
    entering XCB to wait for an event in case the queued event is to be
    delivered to the thread which didn't manage to read it. In other words, let
    only one Xlib thread into xcb_wait_for_event at a time.
    Jamey Sharp looked over my shoulder while making this fix and, while hating
    my whitespace conventions, appears happy enough with the actual code.
    Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>