diff options
author | Drew DeVault <[email protected]> | 2015-11-22 09:18:20 -0500 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-11-22 09:18:20 -0500 |
commit | 7bd82a26b00f2ad57563bee55a098f97c52421f3 (patch) | |
tree | 793b93d9df55478856a9d6dda7d99d3f8bd7d0e7 /sway/config.c | |
parent | 56e80c0f73a9891c50d30ea8f53630fb112f3d23 (diff) | |
parent | 5531dbe1b2026a88670c812d40f0efccb4b52c7f (diff) |
Merge pull request #245 from sce/workspace_output_duplicates
Fix `workspace_output` duplicates
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 8 |
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) { } return str; } + +// the naming is intentional (albeit long): a workspace_output_cmp function +// would compare two structs in full, while this method only compares the +// workspace. +int workspace_output_cmp_workspace(const void *a, const void *b) { + const struct workspace_output *wsa = a, *wsb = b; + return lenient_strcmp(wsa->workspace, wsb->workspace); +} |