diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-02 09:28:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-02 09:28:13 -0400 |
commit | ea14ef40955a94e21a5198d2469e54fe1e6056e5 (patch) | |
tree | 1a28ee032b762f471917c1f175ba02500f9ef794 /sway/desktop | |
parent | 9aa258d33a9baa42895214da7e82f4568fcb8f76 (diff) | |
parent | 706c0fbe2376e15f8140be60f3c8b0713128ebba (diff) | |
download | sway-ea14ef40955a94e21a5198d2469e54fe1e6056e5.tar.xz |
Merge pull request #2366 from RedSoxFan/nagbar
Implement swaynag
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/layer_shell.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index a7d96717..a2935883 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -7,11 +7,13 @@ #include <wlr/types/wlr_output_damage.h> #include <wlr/types/wlr_output.h> #include <wlr/util/log.h> +#include "sway/desktop/transaction.h" #include "sway/input/input-manager.h" #include "sway/input/seat.h" #include "sway/layers.h" #include "sway/output.h" #include "sway/server.h" +#include "sway/tree/arrange.h" #include "sway/tree/layout.h" #include "log.h" @@ -245,6 +247,9 @@ static void handle_surface_commit(struct wl_listener *listener, void *data) { output_damage_surface(output, layer->geo.x, layer->geo.y, layer_surface->surface, false); } + + arrange_windows(output->swayc); + transaction_commit_dirty(); } static void unmap(struct sway_layer_surface *sway_layer) { @@ -282,6 +287,8 @@ static void handle_destroy(struct wl_listener *listener, void *data) { struct sway_output *output = sway_layer->layer_surface->output->data; if (output != NULL && output->swayc != NULL) { arrange_layers(output); + arrange_windows(output->swayc); + transaction_commit_dirty(); } wl_list_remove(&sway_layer->output_destroy.link); sway_layer->layer_surface->output = NULL; |