aboutsummaryrefslogtreecommitdiff
path: root/wayland.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-07-23 18:03:31 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-07-23 18:12:13 +0000
commit0a61cfc3beb881fc8942ae99bf3ad3b5de5e6345 (patch)
tree7a2f45aedcdded65a8a3f1c3b011b5cca45b3175 /wayland.c
parentMerge branch 'invalid-utf8' (diff)
wayland: update terminals (fonts etc) on xdg_output_handle_done()
Monitor DPI depends on information from both the wl_output and the xdg_output interfaces. Before this patch, terminals were only updated after changes to the wl_output interfaces (thus depending on xdg output changes being pushed by the compositor before wl_output changes). That assumption (xdg_output happening before wl_output) isn’t always true. This patch fixes the issue by updating the terminals in the xdg_output’s “done” event. Closes #1431
Diffstat (limited to 'wayland.c')
-rw-r--r--wayland.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland.c b/wayland.c
index 7e51bfe9..a297c76a 100644
--- a/wayland.c
+++ b/wayland.c
@@ -620,6 +620,8 @@ xdg_output_handle_logical_size(void *data, struct zxdg_output_v1 *xdg_output,
static void
xdg_output_handle_done(void *data, struct zxdg_output_v1 *xdg_output)
{
+ struct monitor *mon = data;
+ update_terms_on_monitor(mon);
}
static void