diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 09:09:53 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 09:09:53 -0500 |
commit | 0e3eae4baa7717321ec87cf2c46f6798e89e3ded (patch) | |
tree | d6624a2fa66f344d9db09e43af0fb293f2ab2d3a /sway/criteria.c | |
parent | run all commands with focused container context (diff) | |
download | sway-0e3eae4baa7717321ec87cf2c46f6798e89e3ded.tar.gz sway-0e3eae4baa7717321ec87cf2c46f6798e89e3ded.tar.zst sway-0e3eae4baa7717321ec87cf2c46f6798e89e3ded.zip |
view interface
Diffstat (limited to 'sway/criteria.c')
-rw-r--r-- | sway/criteria.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/sway/criteria.c b/sway/criteria.c index c15f6354..21278a94 100644 --- a/sway/criteria.c +++ b/sway/criteria.c | |||
@@ -299,21 +299,17 @@ static bool criteria_test(swayc_t *cont, list_t *tokens) { | |||
299 | case CRIT_ID: // TODO | 299 | case CRIT_ID: // TODO |
300 | break; | 300 | break; |
301 | case CRIT_APP_ID: | 301 | case CRIT_APP_ID: |
302 | if (!view->iface.get_prop) { | 302 | { |
303 | break; | 303 | const char *app_id = view_get_app_id(cont->sway_view); |
304 | } | 304 | if (!app_id) { |
305 | 305 | break; | |
306 | const char *app_id = | 306 | } |
307 | cont->sway_view->iface.get_prop(view, VIEW_PROP_APP_ID); | ||
308 | 307 | ||
309 | if (!app_id) { | 308 | if (crit->regex && regex_cmp(app_id, crit->regex) == 0) { |
309 | matches++; | ||
310 | } | ||
310 | break; | 311 | break; |
311 | } | 312 | } |
312 | |||
313 | if (crit->regex && regex_cmp(app_id, crit->regex) == 0) { | ||
314 | matches++; | ||
315 | } | ||
316 | break; | ||
317 | case CRIT_INSTANCE: // TODO | 313 | case CRIT_INSTANCE: // TODO |
318 | break; | 314 | break; |
319 | case CRIT_TILING: // TODO | 315 | case CRIT_TILING: // TODO |