diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-23 14:34:20 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-23 14:34:20 -0400 |
commit | 663f53b22a0d97a300345090a92b8567b6a0af82 (patch) | |
tree | 45f2c39c1f883e1b80877c29848003c8ee2c1efc /sway/container.c | |
parent | e78221e6a0413b8cccd41f75288798ae15b792b6 (diff) | |
parent | 7a213889974daad72fd6b925edc3dc2cf1a394a1 (diff) |
Merge pull request #123 from Luminarys/master
Added in output disabling
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c index 127e1ecd..d4f7c693 100644 --- a/sway/container.c +++ b/sway/container.c @@ -70,6 +70,10 @@ swayc_t *new_output(wlc_handle handle) { oc = NULL; } + if (oc && !oc->enabled) { + return NULL; + } + swayc_t *output = new_swayc(C_OUTPUT); if (oc && oc->width != -1 && oc->height != -1) { output->width = oc->width; |