mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
cursor: fix layer subsurface focus bug
...by simply not focusing layer-shell subsurfaces on button press. This is a temporary patch to fix a regression. Fixes: issue #1131
This commit is contained in:
parent
3e5b988d38
commit
c7c8b373b5
1 changed files with 6 additions and 3 deletions
|
|
@ -914,9 +914,12 @@ cursor_button_press(struct seat *seat, struct wlr_pointer_button_event *event)
|
|||
seat_set_focus_layer(seat, layer);
|
||||
}
|
||||
}
|
||||
if (ctx.type == LAB_SSD_LAYER_SUBSURFACE) {
|
||||
seat_focus_surface(seat, ctx.surface);
|
||||
}
|
||||
|
||||
/*
|
||||
* TODO: We may need to handle press on layer-shell subsurfaces here,
|
||||
* but need to check keyboard interactivity before focusing them
|
||||
* otherwise we break waybar. See issue #1131
|
||||
*/
|
||||
|
||||
if (ctx.type != LAB_SSD_CLIENT && ctx.type != LAB_SSD_LAYER_SUBSURFACE
|
||||
&& wlr_seat_pointer_has_grab(seat->seat)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue