mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
Fix scratchpad related crashes
* Was crashing when a view was moved to the scratchpad (prev focus had no parent). * Was crashing when a hidden scratchpad view unmaps because it has no workspace.
This commit is contained in:
parent
93ff7879f1
commit
4e0452fce3
2 changed files with 6 additions and 3 deletions
|
|
@ -560,11 +560,11 @@ void view_unmap(struct sway_view *view) {
|
|||
container_begin_destroy(view->container);
|
||||
if (parent) {
|
||||
container_reap_empty(parent);
|
||||
} else {
|
||||
} else if (ws) {
|
||||
workspace_consider_destroy(ws);
|
||||
}
|
||||
|
||||
if (!ws->node.destroying) {
|
||||
if (ws && !ws->node.destroying) {
|
||||
arrange_workspace(ws);
|
||||
workspace_detect_urgent(ws);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue