mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
app: fix invalid NewWindow config on X11
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
+2
-1
@@ -627,6 +627,7 @@ func newX11Window(gioWin *callbacks, options []Option) error {
|
|||||||
|
|
||||||
ppsp := x11DetectUIScale(dpy)
|
ppsp := x11DetectUIScale(dpy)
|
||||||
cfg := unit.Metric{PxPerDp: ppsp, PxPerSp: ppsp}
|
cfg := unit.Metric{PxPerDp: ppsp, PxPerSp: ppsp}
|
||||||
|
// Only use cnf for getting the window size.
|
||||||
var cnf Config
|
var cnf Config
|
||||||
cnf.apply(cfg, options)
|
cnf.apply(cfg, options)
|
||||||
|
|
||||||
@@ -650,7 +651,7 @@ func newX11Window(gioWin *callbacks, options []Option) error {
|
|||||||
xkb: xkb,
|
xkb: xkb,
|
||||||
xkbEventBase: xkbEventBase,
|
xkbEventBase: xkbEventBase,
|
||||||
wakeups: make(chan struct{}, 1),
|
wakeups: make(chan struct{}, 1),
|
||||||
config: cnf,
|
config: Config{Size: cnf.Size},
|
||||||
}
|
}
|
||||||
w.notify.read = pipe[0]
|
w.notify.read = pipe[0]
|
||||||
w.notify.write = pipe[1]
|
w.notify.write = pipe[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user