mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Revert "new_workspace null behavior + testmap functions + regex"
This reverts commit e1d18e42a8.
Fixes #180
cc @taiyu-len
This commit is contained in:
parent
9c8f1fb964
commit
e505abfe75
12 changed files with 374 additions and 585 deletions
|
|
@ -286,28 +286,3 @@ char *do_var_replacement(char *str) {
|
|||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
struct workspace_output *wsop_find_workspace(const char *name) {
|
||||
int i, len = config->workspace_outputs->length;
|
||||
struct workspace_output *wsop;
|
||||
for (i = 0; i < len; ++i) {
|
||||
wsop = config->workspace_outputs->items[i];
|
||||
if (strcasecmp(wsop->workspace, name) == 0) {
|
||||
return wsop;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
struct workspace_output *wsop_find_output(const char *name) {
|
||||
int i, len = config->workspace_outputs->length;
|
||||
struct workspace_output *wsop;
|
||||
for (i = 0; i < len; ++i) {
|
||||
wsop = config->workspace_outputs->items[i];
|
||||
if (strcasecmp(wsop->output, name) == 0) {
|
||||
return wsop;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue