sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 5c87cc7cb190fbc1ed2a8e8e9d10208a6384e21c
parent 49afdb43933f548ab9b2233d59998d581ef6efa1
Author: Drew DeVault <sir@cmpwn.com>
Date:   Wed, 10 Aug 2016 13:13:10 -0400

Merge pull request #851 from thejan2009/output-disable-during-runtime

Handle output disabling during runtime
Diffstat:
Msway/config.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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;