From 546d971e49f8d9d28235f154b6bba745a6e913bf Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 26 Jun 2022 09:18:02 +0200 Subject: [PATCH] app: [Wayland] ensure monitor scale changes propagate to active windows This broke during an earlier refactor. Signed-off-by: Elias Naur --- app/os_wayland.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/os_wayland.go b/app/os_wayland.go index 4ce42d29..dc5da440 100644 --- a/app/os_wayland.go +++ b/app/os_wayland.go @@ -613,7 +613,7 @@ func gio_onOutputDone(data unsafe.Pointer, output *C.struct_wl_output) { d := callbackLoad(data).(*wlDisplay) conf := d.outputConfig[output] for _, w := range conf.windows { - w.redraw = true + w.updateOutputs() } } @@ -1633,6 +1633,7 @@ func (w *window) updateOutputs() { if found && scale != w.scale { w.scale = scale C.wl_surface_set_buffer_scale(w.surf, C.int32_t(w.scale)) + w.redraw = true } if !found { w.setStage(system.StagePaused)