polybar-dwm/include/components
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
..
bar.hpp tray: remove tray-position = adaptive (#2726) 2022-06-15 11:09:13 +02:00
builder.hpp builder: Use unordered_set for attribute activations 2022-03-14 22:58:01 +01:00
command_line.hpp
config_parser.hpp config_parser: Pass barname as argument to parse() (#2765) 2022-07-09 13:12:37 +02:00
config.hpp Also monitor include-files for changes when --reload is set (#2759) 2022-07-09 12:24:21 +02:00
controller.hpp Also monitor include-files for changes when --reload is set (#2759) 2022-07-09 12:24:21 +02:00
eventloop.hpp fix: Handle X events before polling for IO (#2820) 2022-09-13 14:21:36 +02:00
logger.hpp
renderer_interface.hpp feat(tray): Position using a module (#2595) 2022-04-15 23:50:04 +02:00
renderer.hpp Merge remote-tracking branch 'origin/hotfix/3.6.3' 2022-05-04 11:08:12 +02:00
screen.hpp
types.hpp Merge branch 'hotfix/3.6.2' 2022-04-03 20:11:19 +02:00