aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNihal Jere <nihal@nihaljere.xyz>2021-07-26 02:46:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-26 09:18:37 +0000
commit52f50c556d485c99ff1d8e4f12d9f0499e283148 (patch)
tree48b2b9606407e30485047dd7c0eb64a2c5c9d756
parentreadme: mention XTVERSION (diff)
wayland: set scale to 1 by default
The wl_output protocol specifies that the client should assume that scale is 1 if not set by the compositor.
-rw-r--r--wayland.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 7e9ba629..911694ff 100644
--- a/wayland.c
+++ b/wayland.c
@@ -964,6 +964,7 @@ handle_global(void *data, struct wl_registry *registry,
tll_push_back(
wayl->monitors,
((struct monitor){.wayl = wayl, .output = output, .wl_name = name,
+ .scale = 1,
.use_output_release = version >= WL_OUTPUT_RELEASE_SINCE_VERSION}));
struct monitor *mon = &tll_back(wayl->monitors);