From 42b2174dec2f427428801304f6648baf2e139e34 Mon Sep 17 00:00:00 2001 From: Marko Kungla Date: Sat, 10 Dec 2022 18:39:36 +0200 Subject: [PATCH] app: wayland force redraw on config change When applying window config on runtime, it is nessesary to do full redraw in order to changed config option to apply correctly. This fixes a bug where e.g window size change renders next frame in updated dimensions while native window is not scaled yet since it was waiting for stage event to apply resize. Signed-off-by: Marko Kungla --- app/os_wayland.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/os_wayland.go b/app/os_wayland.go index cff157ea..6cf8a976 100644 --- a/app/os_wayland.go +++ b/app/os_wayland.go @@ -1079,6 +1079,7 @@ func (w *window) Configure(options []Option) { w.setWindowConstraints() } w.w.Event(ConfigEvent{Config: w.config}) + w.redraw = true } func (w *window) setWindowConstraints() {