[PATCH xserver 10/20] kdrive/ephyr: Use NotifyFd for XCB connection input [v2]

Uli Schlachter psychon at znc.in
Fri Nov 13 08:19:46 PST 2015


Am 13.11.2015 um 16:10 schrieb Keith Packard:
> Uli Schlachter <psychon at znc.in> writes:
> 
>> If "something" uses xcb (even just sending a request is enough, doesn't have to
>> be waiting for a reply), xcb could read an event from its FD and append it to
>> its internal queue. At this point there is a pending event in the queue, but the
>> socket isn't marked readable. With this change, the event won't be removed from
>> the queue.
> 
> So, if we check for events before going to sleep (in the block handler),
> that should be sufficient to catch this I think?
> 

Yup.

If I understand the code correctly, that's exactly what the "old" code does.
-- 
Who needs a ~/.signature anyway?


More information about the xorg-devel mailing list