mirror of
https://github.com/labwc/labwc.git
synced 2026-03-01 01:40:24 -05:00
cursor: backport null check from wlroots-0.17 branch
Check that wlr_layer_surface_v1_from_wlr_surface() doesn't return NULL. This may be unnecessary with wlroots 0.16 (not sure) but doesn't hurt and reduces the delta to the wlroots-0.17 branch.
This commit is contained in:
parent
259d6d0c71
commit
50ceae5fb4
1 changed files with 1 additions and 1 deletions
|
|
@ -910,7 +910,7 @@ cursor_button_press(struct seat *seat, struct wlr_pointer_button_event *event)
|
||||||
if (ctx.type == LAB_SSD_LAYER_SURFACE) {
|
if (ctx.type == LAB_SSD_LAYER_SURFACE) {
|
||||||
struct wlr_layer_surface_v1 *layer =
|
struct wlr_layer_surface_v1 *layer =
|
||||||
wlr_layer_surface_v1_from_wlr_surface(ctx.surface);
|
wlr_layer_surface_v1_from_wlr_surface(ctx.surface);
|
||||||
if (layer->current.keyboard_interactive) {
|
if (layer && layer->current.keyboard_interactive) {
|
||||||
seat_set_focus_layer(seat, layer);
|
seat_set_focus_layer(seat, layer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue