app: fix invalid NewWindow config on X11

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2021-09-07 21:20:02 +02:00
committed by Elias Naur
parent f3f4bacb1c
commit b3751dd9ab
+2 -1
View File
@@ -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]