aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-03 10:38:46 -0400
committeremersion <contact@emersion.fr>2018-04-03 10:38:46 -0400
commit58ac05c276c62c821735e77e15f7f502c82209aa (patch)
treee5712bbee8c665990ace1f7f3243aeec9cf9a65d /rootston/cursor.c
parent1cd7ff7d3ab1cb922e4064ee77db453064cccb5b (diff)
parent506acbdecd4436117729e4c40678645725ed2d1f (diff)
Merge branch 'master' into xwayland-dnd
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index 1ee195c2..6fb2688c 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -271,6 +271,13 @@ 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)) {
+ struct wlr_layer_surface *layer =
+ wlr_layer_surface_from_wlr_surface(surface);
+ if (layer->current.keyboard_interactive) {
+ roots_seat_set_focus_layer(seat, layer);
+ }
+ }
break;
}
}