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 <marko.kungla@gmail.com>
This commit is contained in:
Marko Kungla
2022-12-10 18:39:36 +02:00
committed by Elias Naur
parent dee53b3645
commit 42b2174dec
+1
View File
@@ -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() {