aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/layer_shell.c
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-07-22 23:43:45 -0400
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-08-01 22:47:54 -0400
commitabf33468c12df258b8135089d99e7bd4f10e4f28 (patch)
treea47104c9b6ab1c9d94e0fe0b92646a6b96242b74 /sway/desktop/layer_shell.c
parentMerge pull request #2391 from RyanDwyer/fix-popups-v2 (diff)
downloadsway-abf33468c12df258b8135089d99e7bd4f10e4f28.tar.gz
sway-abf33468c12df258b8135089d99e7bd4f10e4f28.tar.zst
sway-abf33468c12df258b8135089d99e7bd4f10e4f28.zip
Arrange output in arrange_layers and commit dirty
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r--sway/desktop/layer_shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index a7d96717..71a0163c 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -7,11 +7,13 @@
7#include <wlr/types/wlr_output_damage.h> 7#include <wlr/types/wlr_output_damage.h>
8#include <wlr/types/wlr_output.h> 8#include <wlr/types/wlr_output.h>
9#include <wlr/util/log.h> 9#include <wlr/util/log.h>
10#include "sway/desktop/transaction.h"
10#include "sway/input/input-manager.h" 11#include "sway/input/input-manager.h"
11#include "sway/input/seat.h" 12#include "sway/input/seat.h"
12#include "sway/layers.h" 13#include "sway/layers.h"
13#include "sway/output.h" 14#include "sway/output.h"
14#include "sway/server.h" 15#include "sway/server.h"
16#include "sway/tree/arrange.h"
15#include "sway/tree/layout.h" 17#include "sway/tree/layout.h"
16#include "log.h" 18#include "log.h"
17 19
@@ -212,6 +214,9 @@ void arrange_layers(struct sway_output *output) {
212 wl_list_for_each(seat, &input_manager->seats, link) { 214 wl_list_for_each(seat, &input_manager->seats, link) {
213 seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL); 215 seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL);
214 } 216 }
217
218 arrange_windows(output->swayc);
219 transaction_commit_dirty();
215} 220}
216 221
217static void handle_output_destroy(struct wl_listener *listener, void *data) { 222static void handle_output_destroy(struct wl_listener *listener, void *data) {