diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-02-13 23:46:20 -0500 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-02-14 11:01:08 +0100 |
commit | ab42874f71bceeaf0357dbf3020f1cb73fb2c738 (patch) | |
tree | a3876a12d29047f178ae3beb59a31d00ee6005f1 /sway/input | |
parent | cc39bbdff336cbad8892e79e8888ae483c457f70 (diff) | |
download | sway-ab42874f71bceeaf0357dbf3020f1cb73fb2c738.tar.xz |
seat: allow tree focus changes while layer focused
This allows the focused inactive tree node and visible workspaces to be
changed while a surface layer has focus. The layer temporarily loses
focus, the tree focus changes, and the layer gets refocused.
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 18664d7c..df48b751 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -725,6 +725,10 @@ void seat_set_raw_focus(struct sway_seat *seat, struct sway_node *node) { void seat_set_focus(struct sway_seat *seat, struct sway_node *node) { if (seat->focused_layer) { + struct wlr_layer_surface_v1 *layer = seat->focused_layer; + seat_set_focus_layer(seat, NULL); + seat_set_focus(seat, node); + seat_set_focus_layer(seat, layer); return; } |