mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 16:36:26 +01:00
Check for NULL output in workspace_valid_on_output
This commit is contained in:
parent
138d10d5d6
commit
56e9f31b2f
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ void next_name_map(struct sway_container *ws, void *data) {
|
|||
static bool workspace_valid_on_output(const char *output_name,
|
||||
const char *ws_name) {
|
||||
struct workspace_config *wsc = workspace_find_config(ws_name);
|
||||
return !wsc || strcmp(wsc->output, output_name) == 0;
|
||||
return !wsc || !wsc->output || strcmp(wsc->output, output_name) == 0;
|
||||
}
|
||||
|
||||
static void workspace_name_from_binding(const struct sway_binding * binding,
|
||||
|
|
Loading…
Reference in a new issue