aboutsummarylogtreecommitdiffstats
path: root/x.c
diff options
context:
space:
mode:
authorIngo Lohmar2019-05-31 22:25:35 +0200
committerHiltjo Posthuma2019-10-26 11:47:24 +0200
commit44ed2ef8677328eaba37cc395c85a8ba44b2481f (patch)
tree24d7e91e033bee45bb68a2ffad5b2c7c9ccad4af /x.c
parent125302db31d718194204b5b1c4abf042ab7ac6ce (diff)
downloadaur-44ed2ef8677328eaba37cc395c85a8ba44b2481f.tar.gz
apply hints before initial mapping (ICCCM)
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.
Diffstat (limited to 'x.c')
-rw-r--r--x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x.c b/x.c
index 6406925403da..bc3ad5a4667f 100644
--- a/x.c
+++ b/x.c
@@ -1154,8 +1154,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);