diff options
author | emersion <contact@emersion.fr> | 2017-12-09 15:48:52 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-09 15:48:52 +0100 |
commit | 4a14aa9ad99a6f316024e110332a0b482e231543 (patch) | |
tree | 2340e6dbc5ffd05c4e2c239d316b42482a474315 /sway/config | |
parent | 8764dc26c634379ca5b5c2c4fc26cf8be9adf027 (diff) | |
download | sway-4a14aa9ad99a6f316024e110332a0b482e231543.tar.xz |
Remove output from layout
Diffstat (limited to 'sway/config')
-rw-r--r-- | sway/config/output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index 26798503..027a79ce 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -91,12 +91,13 @@ static void set_mode(struct wlr_output *output, int width, int height, void apply_output_config(struct output_config *oc, swayc_t *output) { assert(output->type == C_OUTPUT); + struct wlr_output *wlr_output = output->sway_output->wlr_output; if (oc && oc->enabled == 0) { + wlr_output_layout_remove(root_container.output_layout, wlr_output); destroy_output(output); return; } - struct wlr_output *wlr_output = output->sway_output->wlr_output; if (oc && oc->width > 0 && oc->height > 0) { set_mode(wlr_output, oc->width, oc->height, oc->refresh_rate); } |