summaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
authorLuminarys <[email protected]>2015-08-23 12:22:33 -0500
committerLuminarys <[email protected]>2015-08-23 12:23:01 -0500
commit98fad060e28c81c8340afbb473615f7889a6097a (patch)
tree0960997bc9cd401fce0347e6e7cbbb6a14fe8450 /sway/container.c
parente2322414666488945ffcbcab06f9cca95ff731d3 (diff)
Added in glitchy disabling
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/container.c b/sway/container.c
index 127e1ecd..6debeea3 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;