From 52a61671e93953a06b6b440ede5512e8fe45b35e Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Tue, 12 Mar 2019 22:33:49 -0400 Subject: criteria: change workspace to support regex This changes the workspace criteria to support regex instead of basic strings. This matches i3's behavior. --- include/sway/criteria.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sway') diff --git a/include/sway/criteria.h b/include/sway/criteria.h index 3eb583d5..f7e788c8 100644 --- a/include/sway/criteria.h +++ b/include/sway/criteria.h @@ -35,7 +35,7 @@ struct criteria { bool floating; bool tiling; char urgent; // 'l' for latest or 'o' for oldest - char *workspace; + pcre *workspace; }; bool criteria_is_empty(struct criteria *criteria); -- cgit v1.2.3-70-g09d2