mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-04 23:27:58 +02:00
compositor: Always empty the input region of the pointer surface
Otherwise a surface.attach request might cause the input region to be reset to the default value (the entire surface) causing it to receive focus. Tiago ran into this problem with xwayland.
This commit is contained in:
parent
5f3eddc07a
commit
f1c00c0b76
1 changed files with 2 additions and 1 deletions
|
|
@ -2145,11 +2145,12 @@ pointer_cursor_surface_configure(struct weston_surface *es,
|
|||
weston_surface_configure(seat->sprite, x, y,
|
||||
es->buffer->width, es->buffer->height);
|
||||
|
||||
empty_region(&es->input);
|
||||
|
||||
if (!weston_surface_is_mapped(es)) {
|
||||
wl_list_insert(&es->compositor->cursor_layer.surface_list,
|
||||
&es->layer_link);
|
||||
weston_surface_assign_output(es);
|
||||
empty_region(&es->input);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue