mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 02:15:34 +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
@@ -137,7 +137,7 @@ func (w *x11Window) Configure(options []Option) {
|
||||
C.XSetWMNormalHints(w.x, w.xw, &shints)
|
||||
}
|
||||
|
||||
if prev.Size != cnf.Size {
|
||||
if cnf.Mode != Fullscreen && prev.Size != cnf.Size {
|
||||
w.config.Size = cnf.Size
|
||||
C.XResizeWindow(w.x, w.xw, C.uint(cnf.Size.X), C.uint(cnf.Size.Y))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user