app: ignore app.Size when in fullscreen mode

Setting the window size while in fulscreen mode does not make sense.

Fixes gio#220

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2021-09-09 16:21:00 +02:00
committed by Elias Naur
parent 173f14be78
commit e92ca233f5
4 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -496,7 +496,7 @@ func (w *window) Configure(options []Option) {
cnf := w.config
cnf.apply(cfg, options)
if prev.Size != cnf.Size {
if cnf.Mode != Fullscreen && prev.Size != cnf.Size {
width := int32(cnf.Size.X)
height := int32(cnf.Size.Y)
w.config.Size = cnf.Size