mirror of
https://github.com/labwc/labwc.git
synced 2026-02-11 04:27:51 -05:00
desktop: refactor desktop_focus_view()
This commit is contained in:
parent
aa0b2b8e9e
commit
f752610e0b
6 changed files with 23 additions and 35 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue