return;
}
- new->active = true;
bool updated = update_if_necessary(&(new->rect.x), crtc->x) |
update_if_necessary(&(new->rect.y), crtc->y) |
update_if_necessary(&(new->rect.width), crtc->width) |
update_if_necessary(&(new->rect.height), crtc->height);
+ free(crtc);
+ new->active = (new->rect.width != 0 && new->rect.height != 0);
+ if (!new->active) {
+ DLOG("width/height 0/0, disabling output\n");
+ return;
+ }
DLOG("mode: %dx%d+%d+%d\n", new->rect.width, new->rect.height,
new->rect.x, new->rect.y);