aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 725dedd2..2fceb6e2 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -375,3 +375,11 @@ char *do_var_replacement(char *str) {
375 } 375 }
376 return str; 376 return str;
377} 377}
378
379// the naming is intentional (albeit long): a workspace_output_cmp function
380// would compare two structs in full, while this method only compares the
381// workspace.
382int workspace_output_cmp_workspace(const void *a, const void *b) {
383 const struct workspace_output *wsa = a, *wsb = b;
384 return lenient_strcmp(wsa->workspace, wsb->workspace);
385}