mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
cursor: do not crash on layer popup/subsurfaces
This commit is contained in:
parent
95ce9e0264
commit
b1beab473c
1 changed files with 3 additions and 2 deletions
|
|
@ -480,8 +480,9 @@ cursor_button(struct wl_listener *listener, void *data)
|
|||
|
||||
/* Handle _press_ on a layer surface */
|
||||
if (!view && surface) {
|
||||
/* ...if we've ended up here it must be a layer surface */
|
||||
assert(wlr_surface_is_layer_surface(surface));
|
||||
if (!wlr_surface_is_layer_surface(surface)) {
|
||||
return;
|
||||
}
|
||||
struct wlr_layer_surface_v1 *layer =
|
||||
wlr_layer_surface_v1_from_wlr_surface(surface);
|
||||
if (layer->current.keyboard_interactive) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue