aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2021-01-19 20:38:22 -0500
committerSimon Ser <contact@emersion.fr>2021-01-20 14:55:27 +0100
commit62f37ee319804b53b434a84ae2849bf30f9cc089 (patch)
treeb3b31aef92eb0e9e709de557de5e90a0959e247f /backend/x11
parentd6649a8a4ba19fda25fe8607bc62acea8acb5fed (diff)
backend/x11: make sure output transform matrix is initialized
The transform matrix was all 0's, which meant that effectively nothing got rendered other than the clear color.
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c
index 2065aea3..3ca4a235 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -357,8 +357,7 @@ struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend) {
struct wlr_output *wlr_output = &output->wlr_output;
wlr_output_init(wlr_output, &x11->backend, &output_impl, x11->wl_display);
- wlr_output->width = 1024;
- wlr_output->height = 768;
+ wlr_output_update_custom_mode(wlr_output, 1024, 768, 0);
output->swapchain = wlr_swapchain_create(x11->allocator,
wlr_output->width, wlr_output->height, x11->drm_format);