mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
Add desktop.c
Move from view.c functions which work on server->views
This commit is contained in:
parent
5181a0ac52
commit
fb6f7d42a5
9 changed files with 229 additions and 222 deletions
|
|
@ -141,14 +141,14 @@ static void xdg_toplevel_view_map(struct view *view)
|
|||
wl_signal_add(&view->xdg_surface->surface->events.commit,
|
||||
&view->commit);
|
||||
view->commit.notify = handle_commit;
|
||||
view_focus(view);
|
||||
desktop_focus_view(view);
|
||||
}
|
||||
|
||||
static void xdg_toplevel_view_unmap(struct view *view)
|
||||
{
|
||||
view->mapped = false;
|
||||
wl_list_remove(&view->commit.link);
|
||||
view_focus(view_next(view->server, view));
|
||||
desktop_focus_view(desktop_next_view(view->server, view));
|
||||
}
|
||||
|
||||
static const struct view_impl xdg_toplevel_view_impl = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue