mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
app: added missing handling of Options.Size for X11
Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
@@ -155,6 +155,10 @@ func (w *x11Window) setOptions() {
|
|||||||
C.XSetWMNormalHints(w.x, w.xw, &shints)
|
C.XSetWMNormalHints(w.x, w.xw, &shints)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if o := opts.Size; o != nil {
|
||||||
|
C.XResizeWindow(w.x, w.xw, C.uint(w.cfg.Px(o.Width)), C.uint(w.cfg.Px(o.Height)))
|
||||||
|
}
|
||||||
|
|
||||||
var title string
|
var title string
|
||||||
if o := opts.Title; o != nil {
|
if o := opts.Title; o != nil {
|
||||||
title = *o
|
title = *o
|
||||||
|
|||||||
Reference in New Issue
Block a user