diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-03 11:30:25 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-04-03 11:30:37 -0400 |
commit | d88f3c1eb33df8df5649177660ae3b9f51d5921a (patch) | |
tree | 2ab810030d3893ca148f140b4ce8deed00ac2be8 /rootston | |
parent | c44bb8096e53ba2ce7d9e39c614a4d68f170b43c (diff) |
Fix segfault when clicking rootston desktop
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c index 6fb2688c..ac46ff5d 100644 --- a/rootston/cursor.c +++ b/rootston/cursor.c @@ -271,7 +271,7 @@ static void roots_cursor_press_button(struct roots_cursor *cursor, break; case WLR_BUTTON_PRESSED: roots_seat_set_focus(seat, view); - if (wlr_surface_is_layer_surface(surface)) { + if (surface && wlr_surface_is_layer_surface(surface)) { struct wlr_layer_surface *layer = wlr_layer_surface_from_wlr_surface(surface); if (layer->current.keyboard_interactive) { |