diff options
author | Ingo Lohmar <ingo.lohmar@posteo.net> | 2019-05-31 22:25:35 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2019-10-26 11:47:24 +0200 |
commit | 1f09f0b0bbba29ceed9b4e6d558b6ad5b0843cfe (patch) | |
tree | 088d5971746dfcff462b7b80a52d1f1d355f3125 /x.c | |
parent | a2c479c4c8d035c11a91e4b954a9f161bf4c7150 (diff) | |
download | st-patched-1f09f0b0bbba29ceed9b4e6d558b6ad5b0843cfe.tar.bz2 st-patched-1f09f0b0bbba29ceed9b4e6d558b6ad5b0843cfe.tar.xz st-patched-1f09f0b0bbba29ceed9b4e6d558b6ad5b0843cfe.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1154,8 +1154,8 @@ xinit(int cols, int rows) | |||
1154 | 1154 | ||
1155 | win.mode = MODE_NUMLOCK; | 1155 | win.mode = MODE_NUMLOCK; |
1156 | resettitle(); | 1156 | resettitle(); |
1157 | XMapWindow(xw.dpy, xw.win); | ||
1158 | xhints(); | 1157 | xhints(); |
1158 | XMapWindow(xw.dpy, xw.win); | ||
1159 | XSync(xw.dpy, False); | 1159 | XSync(xw.dpy, False); |
1160 | 1160 | ||
1161 | clock_gettime(CLOCK_MONOTONIC, &xsel.tclick1); | 1161 | clock_gettime(CLOCK_MONOTONIC, &xsel.tclick1); |