forked from joejulian/gio
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user