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
+2 -1
View File
@@ -625,7 +625,8 @@ func Title(t string) Option {
}
}
// Size sets the size of the window.
// Size sets the size of the window. The option is ignored
// in Fullscreen mode.
func Size(w, h unit.Value) Option {
if w.V <= 0 {
panic("width must be larger than or equal to 0")