Re: [dev] [dwm] adding WM_WINDOW_ROLE rule

From: Kris Maglione <>
Date: Mon, 26 Jul 2010 20:04:20 -0400

On Tue, Jul 27, 2010 at 01:02:28AM +0100, Rob wrote:
>On 27 July 2010 00:35, Kris Maglione <> wrote:
>> On Mon, Jul 26, 2010 at 11:48:02PM +0100, Rob wrote:
>>> On 26 July 2010 22:32, David DEMELIER <> wrote:
>>>> There is something that make me sad with dwm, there is a lack of role
>>>> rules for clients. I explain : clients have instance and name using
>>>> WM_CLASS, but there is also WM_WINDOW_ROLE which is really important
>>>> and useful.
>>> dwm uses XGetClassHint() to retrieve the class and instance, and you
>>> can't get WM_WINDOW_ROLE like this, so it's not as trivial to add on.
>> Are you serious?
>I just took a crack at patching dwm because I was bored.
>s/so it's not as trivial to add on/because X is quite shit/
>dwm isn't meant to be wmii, so adding in wrappers would only increase
>the code size, when it's much more sane to simply test the window
>title, or if you can be bothered, mod+shift+tag.

I was trashing Xlib, not dwm. Regardless, the Xlib property
get/set wrappers are in quite bad taste.

Kris Maglione
He hoped and prayed that there wasn't an afterlife.  Then he realized
there was a contradiction involved here and merely hoped that there
wasn't an afterlife.
	--Douglas Adams
Received on Tue Jul 27 2010 - 02:04:20 CEST

This archive was generated by hypermail 2.2.0 : Tue Jul 27 2010 - 02:12:03 CEST