summaryrefslogtreecommitdiff
path: root/src/compositor-x11.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-05-28 16:23:35 +0200
committerKristian Høgsberg <krh@bitplanet.net>2013-05-28 16:15:28 -0400
commit83368817a7b73ec00109be09b426380e9bc38e81 (patch)
tree5a295a2566eb0fa9462ec1d55b8dea79ae407711 /src/compositor-x11.c
parent73469ed7e622d6349b153810fcfba25a0fccdb57 (diff)
downloadweston-83368817a7b73ec00109be09b426380e9bc38e81.tar.gz
compositor-x11: Set original mode after current
Otherwise we're pointing the original mode on some uninitialized value.
Diffstat (limited to 'src/compositor-x11.c')
-rw-r--r--src/compositor-x11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor-x11.c b/src/compositor-x11.c
index 3ed6af53..3e9df068 100644
--- a/src/compositor-x11.c
+++ b/src/compositor-x11.c
@@ -887,7 +887,6 @@ x11_compositor_create_output(struct x11_compositor *c, int x, int y,
if (fullscreen)
x11_output_wait_for_map(c, output);
- output->base.origin = output->base.current;
output->base.start_repaint_loop = x11_output_start_repaint_loop;
if (c->use_pixman)
output->base.repaint = x11_output_repaint_shm;
@@ -899,6 +898,7 @@ x11_compositor_create_output(struct x11_compositor *c, int x, int y,
output->base.set_dpms = NULL;
output->base.switch_mode = NULL;
output->base.current = &output->mode;
+ output->base.origin = output->base.current;
output->base.make = "xwayland";
output->base.model = "none";
weston_output_init(&output->base, &c->base,