wlroots/include
Daniel Hill 47f8cefad8 output/cursor: deferred cursor move
This feature is meant to be used with VRR / Adaptive Sync.
Currently cursor move drives the display at the poll rate of the mouse.
This adds a deferred delay for a variety situations:
To save power on battery
To maintain smooth video playback (i.e. render video 30fps at 60 or 120fps)
To maintain smooth gaming experience (i.e. only enforce redraw at VRR minimum Hz)

I've tried to make it as unopinionated as possible, while also reducing
complexity for downstream developers.

The design should be backwards compatible, as long as
wlr_set_cursor_max_latency() is never called wlr_cursor_move() should act as
normal

I considered using wl_signals, but I'm not familiar with the interface, and it
felt somewhat overkill.

There's a reference implementation in branch deferred-cursor-move:
github:YellowOnion/sway
2024-04-24 22:00:13 +12:00
..
backend backend/drm: save current refresh rate 2024-01-24 09:24:31 -05:00
interfaces types/wlr_input_device: move init and finish function to private API 2022-03-07 16:37:41 +00:00
render render/vulkan: constrain blend to output subpass to redrawn region 2023-10-05 11:45:32 +00:00
types Add missing type declarations in headers 2023-11-14 18:44:53 +00:00
util output/cursor: deferred cursor move 2024-04-24 22:00:13 +12:00
wlr output/cursor: deferred cursor move 2024-04-24 22:00:13 +12:00
xcursor Add some missing includes/declarations 2023-06-05 21:06:19 +00:00
xwayland xwayland: add wlr_xwayland_set_workareas() 2023-10-26 15:05:08 -04:00
meson.build build: unify naming for HAVE_* defines 2022-12-06 22:39:45 +00:00