forked from joejulian/gio
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)
|
||||
}
|
||||
|
||||
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
|
||||
if o := opts.Title; o != nil {
|
||||
title = *o
|
||||
|
||||
Reference in New Issue
Block a user