1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2025-04-21 17:42:23 -04:00
polybar/src
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 Use @ for doxygen commands (#2597) 2022-02-20 21:40:48 +01: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 refactor(signals): Avoid reinterpret_cast 2017-01-01 20:31:09 +01: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 feat(tray): Position using a module (#2595) 2022-04-15 23:50:04 +02:00
main.cpp config_parser: Pass barname as argument to parse() (#2765) 2022-07-09 13:12:37 +02:00
polybar-msg.cpp Fix hint message when using deprecated polybar-msg hook 2022-03-05 09:41:00 +01:00
settings.cpp.cmake feat(temperature): Add zone-type setting (#2752) 2022-08-21 19:25:42 +02:00