mirror of
https://github.com/labwc/labwc.git
synced 2026-02-23 01:40:18 -05:00
seat: refactor seat_focus_surface()
This commit is contained in:
parent
f752610e0b
commit
9342b2b414
4 changed files with 10 additions and 14 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue