1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-10-27 05:23:39 -04:00
polybar/lib
Patrick Ziegler 1d4e30c4be
fix: Handle X events before polling for IO (#2820)
* Use m_connection.poll_for_event

* fix: Handle X events before polling for IO

Polling the XCB file descriptor for X events doesn't detect events that
are already in XCB's event queue but not yet handled.

If this happens, the eventloop polls for IO and the queued events wait
until another event arrives, causing some desyncs in the bar.

This can easily happen if something (e.g. a click event) triggers some
xcb calls, which as a consequence buffer some incoming events.

We "fix" this by adding a libuv prepare handle (which runs right before
polling for IO) that processes pending X events.
2022-09-13 14:21:36 +02:00
..
i3ipcpp@86ddf7102c Fix abort in i3 module with new ArchLinux flags 2021-04-25 13:37:00 +02:00
xpp@343dc77d50 fix: Handle X events before polling for IO (#2820) 2022-09-13 14:21:36 +02:00
CMakeLists.txt Remove unused moodycamel concurrentqueue 2021-09-21 21:43:27 +02:00