desktop: refactor desktop_focus_view()

This commit is contained in:
Johan Malm 2020-10-08 20:08:41 +01:00
parent aa0b2b8e9e
commit f752610e0b
6 changed files with 23 additions and 35 deletions

View file

@ -248,7 +248,7 @@ cursor_button(struct wl_listener *listener, void *data)
server->cursor_mode = LAB_CURSOR_PASSTHROUGH;
} else {
/* Focus that client if the button was _pressed_ */
desktop_focus_view(view);
desktop_focus_view(&server->seat, view);
switch (view_area) {
case LAB_DECO_BUTTON_CLOSE:
view->impl->close(view);