Merge branch 'wayland-output-grab-input' into 'master'

Add the ability for wayland output to grab input

See merge request wlroots/wlroots!4441
This commit is contained in:
Lahav Tsur 2024-01-24 22:52:42 +00:00
commit c873399d01
7 changed files with 266 additions and 5 deletions

View file

@ -5,6 +5,7 @@
#include <wayland-server-core.h>
#include <wlr/backend.h>
#include <wlr/types/wlr_output.h>
#include <xkbcommon/xkbcommon.h>
struct wlr_input_device;
@ -23,6 +24,15 @@ struct wlr_backend *wlr_wl_backend_create(struct wl_display *display,
*/
struct wl_display *wlr_wl_backend_get_remote_display(struct wlr_backend *backend);
/**
* Sets the keyboard shortcut for toggle grabbing input of the focused wayland backend output.
*
* If modifiers_mask and keysym are zero or null, no shortcut will be used.
*
*/
void wlr_wl_backend_set_grab_input_shortcut(struct wlr_backend *backend, uint32_t modifiers_mask,
xkb_keysym_t keysym);
/**
* Adds a new output to this backend.
*