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
@@ -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))
}