mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 17:35:36 +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:
+1
-1
@@ -226,7 +226,7 @@ func (w *window) Configure(options []Option) {
|
||||
cnf.MinSize = cnf.MinSize.Div(int(screenScale))
|
||||
cnf.MaxSize = cnf.MaxSize.Div(int(screenScale))
|
||||
|
||||
if prev.Size != cnf.Size {
|
||||
if cnf.Mode != Fullscreen && prev.Size != cnf.Size {
|
||||
w.config.Size = cnf.Size
|
||||
C.setSize(w.window, C.CGFloat(cnf.Size.X), C.CGFloat(cnf.Size.Y))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user