From 01d6b26fd36f6b29c90edc63d706e705ff923879 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Tue, 20 Dec 2011 03:55:33 +0200 Subject: check for both class name strings when matching rules typical output from `xprop` WM_CLASS line: WM_CLASS(STRING) = "foo", "bar" res_class referes to 'bar' res_name referes to 'foo' check both when matching rules --- monsterwm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monsterwm.c b/monsterwm.c index 94483db..34583cf 100644 --- a/monsterwm.c +++ b/monsterwm.c @@ -343,7 +343,8 @@ void maprequest(XEvent *e) { XClassHint ch = {0, 0}; if(XGetClassHint(dis, ev->window, &ch)) for(unsigned int i=0; i