Comment 3 for bug 1504422

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The issue is the code says it's inserting a fake output to replace the old ones, but no code has ever existed to actually do that :)

    if (!xmir_screen->windowed) {
        xmir_screen->windowed = 1;

        XMIR_DEBUG(("Root resized, removing all outputs and inserting fake output\n"));

        while (!xorg_list_is_empty(&xmir_screen->output_list)) {
            struct xmir_output *xmir_output = xorg_list_first_entry(&xmir_screen->output_list, typeof(*xmir_output), link);

            RRCrtcDestroy(xmir_output->randr_crtc);
            RROutputDestroy(xmir_output->randr_output);
            xmir_output_destroy(xmir_output);
        }
    }