mirror of
https://github.com/swaywm/sway.git
synced 2024-11-10 20:44:01 +01:00
code style clean up
This commit is contained in:
parent
a70b9a9a7a
commit
227d5dbe08
@ -228,13 +228,13 @@ 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);
|
||||
}
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user