polybar-dwm/include
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
..
adapters Merge remote-tracking branch 'origin/hotfix/3.6.3' 2022-05-04 11:08:12 +02:00
cairo fix(renderer): Small gaps when rendering emojis (#2802) 2022-08-25 00:55:16 +02:00
components fix: Handle X events before polling for IO (#2820) 2022-09-13 14:21:36 +02:00
drawtypes feat(tokens): Negative minimum length adds right padding (#2801) 2022-08-25 00:36:38 +02:00
events tray: implement hiding functionality (#2723) 2022-06-16 12:53:49 +02:00
ipc fix(ipc): Fallback folder not being user-specific (#2684) 2022-04-07 15:33:56 +02:00
modules feat(temperature): Add zone-type setting (#2752) 2022-08-21 19:25:42 +02:00
tags feat(tray): Position using a module (#2595) 2022-04-15 23:50:04 +02:00
utils Merge branch 'hotfix/3.6.2' 2022-04-03 20:11:19 +02:00
x11 fix: Crash on root pixmap and window depth mismatch (#2813) 2022-09-05 09:58:12 +02:00
CMakeLists.txt refactor(cmake): Allow targets to be enabled individually 2020-12-24 02:20:38 +01:00
common.hpp Use sockets for IPC (#2539) 2022-01-22 20:35:37 +01:00
debug.hpp refactor: Cleanup 2017-01-11 03:07:28 +01:00
errors.hpp Add missing <stdexcept> header 2019-12-25 01:00:29 +01:00
settings.hpp.cmake feat(temperature): Add zone-type setting (#2752) 2022-08-21 19:25:42 +02:00