[hackers] [st] apply hints before initial mapping (ICCCM) || Ingo Lohmar

From: <git_AT_suckless.org>
Date: Sat, 26 Oct 2019 11:48:45 +0200 (CEST)

commit 1f09f0b0bbba29ceed9b4e6d558b6ad5b0843cfe
Author: Ingo Lohmar <ingo.lohmar_AT_posteo.net>
AuthorDate: Fri May 31 22:25:35 2019 +0200
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sat Oct 26 11:47:24 2019 +0200

    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.

diff --git a/x.c b/x.c
index 6406925..bc3ad5a 100644
--- a/x.c
+++ b/x.c
_AT_@ -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);
Received on Sat Oct 26 2019 - 11:48:45 CEST

This archive was generated by hypermail 2.3.0 : Sat Oct 26 2019 - 12:00:25 CEST