Select the right fb on enter_vt
authorKristian Høgsberg <krh@redhat.com>
Fri, 18 Sep 2009 21:04:20 +0000 (17:04 -0400)
committerKristian Høgsberg <krh@redhat.com>
Fri, 18 Sep 2009 21:05:50 +0000 (17:05 -0400)
wayland-system-compositor.c

index 4bc6e57..3c8491f 100644 (file)
@@ -1300,7 +1300,7 @@ static void on_enter_vt(int signal_number, void *data)
        output = container_of(ec->output_list.next, struct wlsc_output, link);
        while (&output->link != &ec->output_list) {
                ret = drmModeSetCrtc(fd, output->crtc_id,
-                                    output->fb_id[output->current], 0, 0,
+                                    output->fb_id[output->current ^ 1], 0, 0,
                                     &output->connector_id, 1, output->mode);
                if (ret)
                        fprintf(stderr, "failed to set mode for connector %d: %m\n",