mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
fixed segfault on exit + a little fixup of that floatfocus pr
This commit is contained in:
parent
0bf380a0b1
commit
225c2fbe5b
5 changed files with 24 additions and 17 deletions
|
|
@ -231,14 +231,7 @@ static void handle_view_destroyed(wlc_handle handle) {
|
|||
break;
|
||||
}
|
||||
|
||||
swayc_t *focused_view = get_focused_view(&root_container);
|
||||
if (focused_view->type == C_WORKSPACE && focused_view->children->length == 0) {
|
||||
if (focused_view->floating->length > 0) {
|
||||
focused_view = focused_view->floating->items[focused_view->floating->length-1];
|
||||
focused_view = get_focused_view(focused_view);
|
||||
}
|
||||
}
|
||||
set_focused_container(focused_view);
|
||||
set_focused_container(get_focused_view(&root_container));
|
||||
}
|
||||
|
||||
static void handle_view_focus(wlc_handle view, bool focus) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue