match windows without class

asked 2014-06-11 01:36:26 +0000

hiimtye gravatar image

updated 2014-06-11 08:04:43 +0000

Adaephon gravatar image

Is it possible to use a WM_CLASS test to match windows without a class? The reason I ask is the following match only matches windows that have a WM_CLASS set, the others are ignored:

assign [class="^(?!Steam)" title="(StarConflict.*|Trine|Spiral.*|Iesabel|The Witcher.*|Teslagrad.*|Dust:.*|Bastion|Painkiller.*|RaceTheSun|Rochard)"] $ws9

This matches, for instance, The Witcher 2 Launcher which has a WM_CLASS property: xprop output

but not, for instance, Teslagrad, which does not: xprop output

edit retag flag offensive close merge delete

Comments

I don't have anything to test with, but maybe `[class="^$"]` matches (it matches empty strings, I'm not sure how missing properties are mapped).

Adaephon gravatar imageAdaephon ( 2014-06-11 08:14:35 +0000 )edit