From b3751dd9ab8df9b052c6fad1f0c36a18fafcac73 Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Tue, 7 Sep 2021 21:20:02 +0200 Subject: [PATCH] app: fix invalid NewWindow config on X11 Signed-off-by: Pierre Curto --- app/os_x11.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/os_x11.go b/app/os_x11.go index a7b6e469..6a500134 100644 --- a/app/os_x11.go +++ b/app/os_x11.go @@ -627,6 +627,7 @@ func newX11Window(gioWin *callbacks, options []Option) error { ppsp := x11DetectUIScale(dpy) cfg := unit.Metric{PxPerDp: ppsp, PxPerSp: ppsp} + // Only use cnf for getting the window size. var cnf Config cnf.apply(cfg, options) @@ -650,7 +651,7 @@ func newX11Window(gioWin *callbacks, options []Option) error { xkb: xkb, xkbEventBase: xkbEventBase, wakeups: make(chan struct{}, 1), - config: cnf, + config: Config{Size: cnf.Size}, } w.notify.read = pipe[0] w.notify.write = pipe[1]