Commits on Source (4)
-
Introduce a function to convert a drmModeModeInfo into a new wlr_drm_mode.
-
John Lindgren authored
It should be considered a bug if a compositor sets a non-finite cursor position, so fail loudly (in debug builds) if that happens. The existing check in wlr_cursor_warp_closest() is now redundant, and would silently hide such bugs, so remove it.
-
John Lindgren authored
There doesn't appear to be any good reason to warp the cursor to the top-left corner when all outputs are disconnected; it's no more valid than any other (x,y) point in that case. The real-world case here is a user with a single external monitor turning it off (which apparently counts as disconnected depending on the connection type/hardware). For that user, it's desirable to have the cursor remain in its original location when the monitor is turned back on.
Showing
- backend/drm/drm.c 24 additions, 20 deletionsbackend/drm/drm.c
- include/types/wlr_output.h 2 additions, 0 deletionsinclude/types/wlr_output.h
- types/output/output.c 1 addition, 1 deletiontypes/output/output.c
- types/output/render.c 15 additions, 0 deletionstypes/output/render.c
- types/wlr_cursor.c 17 additions, 7 deletionstypes/wlr_cursor.c
- types/wlr_output_damage.c 3 additions, 1 deletiontypes/wlr_output_damage.c