mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
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:
+2
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user