wlroots/include
Thomas Hebb dcae6f1431 Allow keyboard and pointer grabs to hook clear_focus()
This is necessary for some grabs, which currently have no way of knowing
when the pointer/keyboard focus has left a surface. For example, without
this, a drag-and-drop grab can erroneously drop into a window that the
cursor is no longer over.

This is the plumbing needed to properly fix swaywm/sway#5220. The
existing fix, swaywm/sway#5222, relies on every grab's `enter()` hook
allowing a `NULL` surface. This is not guaranteed by the API and, in
fact, is not the case for the xdg-shell popup grab and results in a
crash when the cursor leaves a surface and does not immediately enter
another one while a popup is open (#2161).

This fix also adds an assertion to wlr_seat_pointer_notify_enter() that
ensures it's never called with a `NULL` surface. This will make Sway
crash much more until it fixes its usage of the API, so we should land
this at the same time as a fix in Sway (which I haven't posted yet).
2020-06-05 17:20:26 +02:00
..
backend backend/drm: make adaptive_sync atomic 2020-06-01 11:45:11 -06:00
render render/texture: add width and height fields 2020-04-28 21:45:14 +02:00
types wlr_keyboard_group: introduce enter and leave 2020-05-31 17:28:18 -04:00
util util: add wlr_output_destroy_safe 2020-02-17 20:52:37 +01:00
wlr Allow keyboard and pointer grabs to hook clear_focus() 2020-06-05 17:20:26 +02:00
xcursor Add xcursor sublibrary 2017-08-07 21:13:04 -04:00
xwayland xwayland: split server 2020-05-19 22:07:47 +02:00
meson.build meson: Various improvements 2019-12-23 07:48:29 -05:00