diff options
-rw-r--r-- | sway/tree/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index e592302c..d65a3e4c 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c | |||
@@ -128,7 +128,7 @@ void next_name_map(struct sway_container *ws, void *data) { | |||
128 | static bool workspace_valid_on_output(const char *output_name, | 128 | static bool workspace_valid_on_output(const char *output_name, |
129 | const char *ws_name) { | 129 | const char *ws_name) { |
130 | struct workspace_config *wsc = workspace_find_config(ws_name); | 130 | struct workspace_config *wsc = workspace_find_config(ws_name); |
131 | return !wsc || strcmp(wsc->output, output_name) == 0; | 131 | return !wsc || !wsc->output || strcmp(wsc->output, output_name) == 0; |
132 | } | 132 | } |
133 | 133 | ||
134 | static void workspace_name_from_binding(const struct sway_binding * binding, | 134 | static void workspace_name_from_binding(const struct sway_binding * binding, |