mirror of
https://github.com/labwc/labwc.git
synced 2025-11-01 22:58:47 -04:00
view: Rename/move workspaces_send_to() to view_move_to_workspace()
This function semantically belongs in view.c since it modifies `struct view`. Also a minor formatting fix in view_toggle_always_on_top().
This commit is contained in:
parent
0e6d99e0ca
commit
c67c6691ac
5 changed files with 16 additions and 15 deletions
15
src/view.c
15
src/view.c
|
|
@ -522,13 +522,26 @@ view_toggle_always_on_top(struct view *view)
|
|||
assert(view);
|
||||
if (is_always_on_top(view)) {
|
||||
view->workspace = view->server->workspace_current;
|
||||
wlr_scene_node_reparent(&view->scene_tree->node, view->workspace->tree);
|
||||
wlr_scene_node_reparent(&view->scene_tree->node,
|
||||
view->workspace->tree);
|
||||
} else {
|
||||
wlr_scene_node_reparent(&view->scene_tree->node,
|
||||
view->server->view_tree_always_on_top);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
view_move_to_workspace(struct view *view, struct workspace *workspace)
|
||||
{
|
||||
assert(view);
|
||||
assert(workspace);
|
||||
if (view->workspace != workspace) {
|
||||
view->workspace = workspace;
|
||||
wlr_scene_node_reparent(&view->scene_tree->node,
|
||||
workspace->tree);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
view_set_decorations(struct view *view, bool decorations)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue