[hackers] [st][patch] apply hints before initial mapping (ICCCM)

From: Ingo Lohmar <ingo.lohmar_AT_posteo.net>
Date: Fri, 31 May 2019 22:25:35 +0200

For WM_CLASS this is mentioned in the ICCCM docs
https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.2.5
(third sentence).

When changing the WM_CLASS from the command line, this is necessary for
window managers to pick it up before applying class-based rules.

---
 x.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/x.c b/x.c
index 5828a3b..7287b6b 100644
--- a/x.c
+++ b/x.c
_AT_@ -1132,8 +1132,8 @@ xinit(int cols, int rows)
 
 	win.mode = MODE_NUMLOCK;
 	resettitle();
-	XMapWindow(xw.dpy, xw.win);
 	xhints();
+	XMapWindow(xw.dpy, xw.win);
 	XSync(xw.dpy, False);
 
 	clock_gettime(CLOCK_MONOTONIC, &xsel.tclick1);
-- 
2.20.1
Received on Fri May 31 2019 - 22:25:35 CEST

This archive was generated by hypermail 2.3.0 : Fri May 31 2019 - 22:36:22 CEST