From dce38e45448adb3d46de2152becf9a344abdc9e3 Mon Sep 17 00:00:00 2001 From: dags Date: Wed, 9 Oct 2019 08:51:23 +0100 Subject: [PATCH] fix width/height being used in wrong order --- muon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/muon.go b/muon.go index 4f4f06a..81a8777 100644 --- a/muon.go +++ b/muon.go @@ -74,12 +74,12 @@ func New(cfg *Config, handler http.Handler) *Window { hint |= 8 } - w.wnd = UlCreateWindow(mm, w.cfg.Height, w.cfg.Width, false, hint) + w.wnd = UlCreateWindow(mm, w.cfg.Width, w.cfg.Height, false, hint) UlWindowSetTitle(w.wnd, w.cfg.Title) UlAppSetWindow(w.app, w.wnd) - w.ov = UlCreateOverlay(w.wnd, w.cfg.Height, w.cfg.Width, w.cfg.X, w.cfg.Y) + w.ov = UlCreateOverlay(w.wnd, w.cfg.Width, w.cfg.Height, w.cfg.X, w.cfg.Y) UlWindowSetResizeCallback(w.wnd, resizeCallback(w.ov), nil)