aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2009-09-18 17:04:20 -0400
committerKristian Høgsberg <krh@redhat.com>2009-09-18 17:05:50 -0400
commitdd73dd5c81673b2da0095a2c8edce964a3453861 (patch)
tree11e1e0009a657095522eb6037f3f1e04e957eb5d
parentOnly raise surface on click, not release (diff)
downloadwayland-dd73dd5c81673b2da0095a2c8edce964a3453861.tar
wayland-dd73dd5c81673b2da0095a2c8edce964a3453861.tar.gz
wayland-dd73dd5c81673b2da0095a2c8edce964a3453861.tar.bz2
wayland-dd73dd5c81673b2da0095a2c8edce964a3453861.tar.lz
wayland-dd73dd5c81673b2da0095a2c8edce964a3453861.tar.xz
wayland-dd73dd5c81673b2da0095a2c8edce964a3453861.tar.zst
wayland-dd73dd5c81673b2da0095a2c8edce964a3453861.zip
Select the right fb on enter_vt
-rw-r--r--wayland-system-compositor.c2
1 files changed, 1 insertions, 1 deletions
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",