:name selector sometimes doesn't match?
I have tried the following, and neither of them match:
tag '5:bsnes' do match :instance => 'phoenix', :name => '^bsnes v\\d+$' geometry [ 508, 195, 584, 510 ] fixed true end
tag '5:bsnes' do match :instance => 'phoenix', :name => 'bsnes v088' geometry [ 508, 195, 584, 510 ] fixed true end
If I remove the
:name selector it works fine. Here's the
xprop output for the client:
WM_CLASS(STRING) = 'phoenix', 'Phoenix' WM_ICON_NAME(STRING) = 'bsnes v088' _NET_WM_ICON_NAME(UTF8_STRING) = 'bsnes v088' WM_NAME(STRING) = 'bsnes v088' _NET_WM_NAME(UTF8_STRING) = 'bsnes v088'
Unless I'm doing something wrong, it should work, shouldn't it? What makes it even weirder is that this (different) tag does work:
tag 'chat:ll' do match :instance => 'Steam.exe', :name => 'Friends' gravity :g15_ll end
But this one doesn't:
tag 'chat:lr' do match :instance => 'Steam.exe', :name => ' - Chat$' gravity :g15_lr end
So, it seems to me that
:name works sometimes but not other times. I can't figure out why, though.
#2 Updated by Sae Hirak about 8 years ago
Okay, I narrowed it down a little. This works:
match :instance => "phoenix", :name => /bsnes /
But this doesn't:
match :instance => "phoenix", :name => /bsnes v/
Does subtle do some sort of string manipulation on the regexps? If so, my best guess is that it's barfing on spaces in the regexp.
#3 Updated by Christoph Kappel about 8 years ago
- Category set to Unconfirmed
- Status changed from Unconfirmed to Not a bug
- Assignee set to Non member users
- Target version set to Xi