mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
desktop: move scene-tree node in move-to-back
view_minimize() does not need to call desktop_move_to_back() because the stacking order is not changed and the windowSwitcher uses the scene-tree nodes anyway. Note: Movement of xwayland sub-views still relies on keeping server->views in sync with z-order
This commit is contained in:
parent
e45fe0804d
commit
a6896e6978
7 changed files with 36 additions and 6 deletions
|
|
@ -2,6 +2,7 @@
|
|||
/* view-impl-common.c: common code for shell view->impl functions */
|
||||
#include <stdio.h>
|
||||
#include <strings.h>
|
||||
#include "common/list.h"
|
||||
#include "labwc.h"
|
||||
#include "view.h"
|
||||
#include "view-impl-common.h"
|
||||
|
|
@ -14,6 +15,14 @@ view_impl_move_to_front(struct view *view)
|
|||
wlr_scene_node_raise_to_top(&view->scene_tree->node);
|
||||
}
|
||||
|
||||
void
|
||||
view_impl_move_to_back(struct view *view)
|
||||
{
|
||||
wl_list_remove(&view->link);
|
||||
wl_list_append(&view->server->views, &view->link);
|
||||
wlr_scene_node_lower_to_bottom(&view->scene_tree->node);
|
||||
}
|
||||
|
||||
void
|
||||
view_impl_map(struct view *view)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue