diff options
-rw-r--r-- | sway/desktop/layer_shell.c | 3 | ||||
-rw-r--r-- | sway/input/seat.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index 1fae5db2..a4f7f928 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c | |||
@@ -176,7 +176,7 @@ void arrange_layers(struct sway_output *output) { | |||
176 | sizeof(struct wlr_box)) != 0) { | 176 | sizeof(struct wlr_box)) != 0) { |
177 | wlr_log(WLR_DEBUG, "Usable area changed, rearranging output"); | 177 | wlr_log(WLR_DEBUG, "Usable area changed, rearranging output"); |
178 | memcpy(&output->usable_area, &usable_area, sizeof(struct wlr_box)); | 178 | memcpy(&output->usable_area, &usable_area, sizeof(struct wlr_box)); |
179 | container_set_dirty(output->swayc); | 179 | arrange_output(output->swayc); |
180 | } | 180 | } |
181 | 181 | ||
182 | // Arrange non-exlusive surfaces from top->bottom | 182 | // Arrange non-exlusive surfaces from top->bottom |
@@ -247,7 +247,6 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) { | |||
247 | layer_surface->surface, false); | 247 | layer_surface->surface, false); |
248 | } | 248 | } |
249 | 249 | ||
250 | arrange_windows(output->swayc); | ||
251 | transaction_commit_dirty(); | 250 | transaction_commit_dirty(); |
252 | } | 251 | } |
253 | 252 | ||
diff --git a/sway/input/seat.c b/sway/input/seat.c index 36e1d232..5af9e88a 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -779,7 +779,7 @@ void seat_set_focus_layer(struct sway_seat *seat, | |||
779 | wlr_log(WLR_DEBUG, "Returning focus to %p %s '%s'", previous, | 779 | wlr_log(WLR_DEBUG, "Returning focus to %p %s '%s'", previous, |
780 | container_type_to_str(previous->type), previous->name); | 780 | container_type_to_str(previous->type), previous->name); |
781 | // Hack to get seat to re-focus the return value of get_focus | 781 | // Hack to get seat to re-focus the return value of get_focus |
782 | seat_set_focus(seat, previous->parent); | 782 | seat_set_focus(seat, NULL); |
783 | seat_set_focus(seat, previous); | 783 | seat_set_focus(seat, previous); |
784 | } | 784 | } |
785 | return; | 785 | return; |