~eliasnaur/gio

42b2174dec2f427428801304f6648baf2e139e34 — Marko Kungla 5 months ago dee53b3
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>
1 files changed, 1 insertions(+), 0 deletions(-)

M app/os_wayland.go
M app/os_wayland.go => app/os_wayland.go +1 -0
@@ 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() {