mirror of
https://github.com/swaywm/sway.git
synced 2025-11-09 13:29:49 -05:00
Add remaining sway allocation failure handling
This commit is contained in:
parent
7784f1a905
commit
a2b9149656
2 changed files with 10 additions and 2 deletions
|
|
@ -217,7 +217,7 @@ swayc_t *new_workspace(swayc_t *output, const char *name) {
|
|||
workspace->y = output->y;
|
||||
workspace->width = output->width;
|
||||
workspace->height = output->height;
|
||||
workspace->name = strdup(name);
|
||||
workspace->name = !name ? NULL : strdup(name);
|
||||
workspace->visible = false;
|
||||
workspace->floating = create_list();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue