~eliasnaur/gio-patches

gio: app: added missing handling of Options.Size for X11 v1 PROPOSED

~pierrec
~pierrec: 1
 app: added missing handling of Options.Size for X11

 1 files changed, 4 insertions(+), 0 deletions(-)
#491257 apple.yml success
#491258 freebsd.yml success
#491259 linux.yml failed
#491260 openbsd.yml success
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio-patches/patches/22169/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH gio] app: added missing handling of Options.Size for X11 Export this patch

~pierrec
From: pierre <pierre.curto@gmail.com>

Signed-off-by: pierre <pierre.curto@gmail.com>
---
-

 app/internal/wm/os_x11.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/app/internal/wm/os_x11.go b/app/internal/wm/os_x11.go
index 75b956e2..51ab7983 100644
--- a/app/internal/wm/os_x11.go
+++ b/app/internal/wm/os_x11.go
@@ -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
-- 
2.30.2
builds.sr.ht
gio/patches: FAILED in 20m56s

[app: added missing handling of Options.Size for X11][0] from [~pierrec][1]

[0]: https://lists.sr.ht/~eliasnaur/gio-patches/patches/22169
[1]: mailto:pierre.curto@gmail.com

✗ #491259 FAILED  gio/patches/linux.yml   https://builds.sr.ht/~eliasnaur/job/491259
✓ #491257 SUCCESS gio/patches/apple.yml   https://builds.sr.ht/~eliasnaur/job/491257
✓ #491260 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/491260
✓ #491258 SUCCESS gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/491258