From dd73dd5c81673b2da0095a2c8edce964a3453861 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 18 Sep 2009 17:04:20 -0400 Subject: [PATCH] Select the right fb on enter_vt --- wayland-system-compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wayland-system-compositor.c b/wayland-system-compositor.c index 4bc6e57..3c8491f 100644 --- a/wayland-system-compositor.c +++ b/wayland-system-compositor.c @@ -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", -- 2.7.4