aboutsummaryrefslogtreecommitdiff
path: root/rootston/cursor.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-02 17:00:09 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-02 18:44:06 -0400
commit37036df822fb339d790be24abbaa09253f889d25 (patch)
treebdeb709cff9c02f3873a4d4daf75b3acae81c88b /rootston/cursor.c
parenta94f4d0edcdb54ac59b399df36273555f29ffc7d (diff)
Handle layer surfaces below shell surfaces
Diffstat (limited to 'rootston/cursor.c')
-rw-r--r--rootston/cursor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootston/cursor.c b/rootston/cursor.c
index 1ee195c2..6252b6e1 100644
--- a/rootston/cursor.c
+++ b/rootston/cursor.c
@@ -271,6 +271,12 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
break;
case WLR_BUTTON_PRESSED:
roots_seat_set_focus(seat, view);
+ if (surface && !view) {
+ struct wlr_layer_surface *layer = surface->role_data;
+ if (layer->current.keyboard_interactive) {
+ roots_seat_set_focus_layer(seat, layer);
+ }
+ }
break;
}
}