seat: refactor seat_focus_surface()

This commit is contained in:
Johan Malm 2020-10-08 20:22:52 +01:00
parent f752610e0b
commit 9342b2b414
4 changed files with 10 additions and 14 deletions

View file

@ -68,7 +68,7 @@ void
desktop_focus_view(struct seat *seat, struct view *view)
{
if (!view) {
seat_focus_surface(seat->seat, NULL);
seat_focus_surface(seat, NULL);
return;
}
if (view->minimized) {
@ -87,7 +87,7 @@ desktop_focus_view(struct seat *seat, struct view *view)
}
move_to_front(view);
set_activated(view->surface, true);
seat_focus_surface(seat->seat, view->surface);
seat_focus_surface(seat, view->surface);
move_xwayland_sub_views_to_front(view);
}
}