2021-10-16 21:26:57 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2023-02-05 19:29:24 +00:00
|
|
|
/* view-impl-common.c: common code for shell view->impl functions */
|
2021-10-16 21:26:57 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <strings.h>
|
|
|
|
|
#include "labwc.h"
|
2022-11-21 10:10:39 -05:00
|
|
|
#include "view.h"
|
2023-02-05 19:29:24 +00:00
|
|
|
#include "view-impl-common.h"
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
view_impl_move_to_front(struct view *view)
|
|
|
|
|
{
|
|
|
|
|
wl_list_remove(&view->link);
|
|
|
|
|
wl_list_insert(&view->server->views, &view->link);
|
|
|
|
|
wlr_scene_node_raise_to_top(&view->scene_tree->node);
|
|
|
|
|
}
|
2021-10-16 21:26:57 +01:00
|
|
|
|
|
|
|
|
void
|
|
|
|
|
view_impl_map(struct view *view)
|
|
|
|
|
{
|
|
|
|
|
desktop_focus_and_activate_view(&view->server->seat, view);
|
2021-12-06 21:23:49 +00:00
|
|
|
desktop_move_to_front(view);
|
2021-10-16 21:26:57 +01:00
|
|
|
view_update_title(view);
|
2021-10-16 21:50:56 +01:00
|
|
|
view_update_app_id(view);
|
2021-10-16 21:26:57 +01:00
|
|
|
}
|