app: added missing handling of Options.Size for X11

Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
pierre
2021-04-20 11:55:58 +02:00
committed by Elias Naur
parent 22f16d7b02
commit 354f5b43d2
+4
View File
@@ -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