diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-08-10 18:52:49 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-08-10 18:52:49 +0200 |
| commit | 7e8dabd6eba9598174fe2dae6f15d0a9f1ca32b8 (patch) | |
| tree | 6fb0de479008bf961d16c2dacaee07d9adf3ab10 | |
| parent | 57e00aa4606231bf60953adc948ea81a459688c1 (diff) | |
Handle output disabling during runtime
Output now gets disabled if disable command is invoked via bindsym or
IPC.
| -rw-r--r-- | sway/config.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index a1f33dcf..8531a337 100644 --- a/sway/config.c +++ b/sway/config.c @@ -859,6 +859,11 @@ void apply_input_config(struct input_config *ic, struct libinput_device *dev) { } void apply_output_config(struct output_config *oc, swayc_t *output) { + if (oc->enabled == 0) { + destroy_output(output); + return; + } + if (oc && oc->width > 0 && oc->height > 0) { output->width = oc->width; output->height = oc->height; |
