Added in glitchy disabling

This commit is contained in:
Luminarys 2015-08-23 12:22:33 -05:00
parent e232241466
commit 98fad060e2
4 changed files with 21 additions and 0 deletions

View file

@ -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;