aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-04-05 14:19:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-04-05 14:19:47 +0000
commit88a3b54ca3d0732db8a89b62d3373c66c970327f (patch)
tree7d3e82905cc3fb9c0390f7670d4ffe9ecc2535f9 /terminal.c
parentlog: fix syslog not respecting the configured log level (diff)
wayland: only use the surface preferred scale if set by the compositor
Before this patch, we would, in some cases, fallback to the surface preferred (not fractional) scaling, even though the compositor hadn't actually published a preferred buffer scale; the presence of a v6 compositor interface doesn't mean we've actually received a preferred scale yet.
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index e4396585..6144bacb 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2125,7 +2125,7 @@ term_fractional_scaling(const struct terminal *term)
bool
term_preferred_buffer_scale(const struct terminal *term)
{
- return term->wl->has_wl_compositor_v6;
+ return term->wl->has_wl_compositor_v6 && term->window->preferred_buffer_scale > 0;
}
bool