mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
compositor-x11: Handle keyboard focus correctly so we avoid stuck modifiers
This commit is contained in:
parent
ac5c5e7853
commit
3ba4858c4b
6 changed files with 80 additions and 3 deletions
|
|
@ -70,6 +70,7 @@ struct wlsc_input_device {
|
|||
struct wl_list link;
|
||||
uint32_t modifier_state;
|
||||
struct wl_selection *selection;
|
||||
struct wl_surface *saved_keyboard_focus;
|
||||
};
|
||||
|
||||
struct wlsc_drm {
|
||||
|
|
@ -161,6 +162,11 @@ notify_pointer_focus(struct wl_input_device *device,
|
|||
struct wlsc_output *output,
|
||||
int32_t x, int32_t y);
|
||||
|
||||
void
|
||||
notify_keyboard_focus(struct wl_input_device *device,
|
||||
uint32_t time, struct wlsc_output *output,
|
||||
struct wl_array *keys);
|
||||
|
||||
void
|
||||
wlsc_compositor_finish_frame(struct wlsc_compositor *compositor, int msecs);
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue