Skip to content

backends/x11: Fix time-comparison bug causing hang

Ghost User requested to merge (removed):50day into master

A comparison in translate_device_event() does not account for the fact that X's clock wraps about every 49.7 days. When triggered, this causes an unresponsive GUI.

Replace simple less-than comparison with XSERVER_TIME_IS_BEFORE macro, which accounts for the wrapping of X's clock.

Closes: #12 (closed)

Merge request reports