mirror of
https://github.com/labwc/labwc.git
synced 2025-11-30 06:59:52 -05:00
xwayland: hide content tree at re-map if shaded
This commit is contained in:
parent
8bd20f19dc
commit
35b3980a5b
2 changed files with 7 additions and 1 deletions
|
|
@ -2517,7 +2517,11 @@ view_set_shade(struct view *view, bool shaded)
|
||||||
|
|
||||||
view->shaded = shaded;
|
view->shaded = shaded;
|
||||||
ssd_enable_shade(view->ssd, view->shaded);
|
ssd_enable_shade(view->ssd, view->shaded);
|
||||||
/* An unmapped view may not have a content tree */
|
/*
|
||||||
|
* An unmapped view may not have a content tree. When the view
|
||||||
|
* is mapped again, the new content tree will be hidden by the
|
||||||
|
* map handler, if the view is still shaded at that point.
|
||||||
|
*/
|
||||||
if (view->content_tree) {
|
if (view->content_tree) {
|
||||||
wlr_scene_node_set_enabled(&view->content_tree->node,
|
wlr_scene_node_set_enabled(&view->content_tree->node,
|
||||||
!view->shaded);
|
!view->shaded);
|
||||||
|
|
|
||||||
|
|
@ -816,6 +816,8 @@ handle_map(struct wl_listener *listener, void *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wlr_scene_node_set_enabled(&view->content_tree->node, !view->shaded);
|
||||||
|
|
||||||
if (!view->been_mapped) {
|
if (!view->been_mapped) {
|
||||||
check_natural_geometry(view);
|
check_natural_geometry(view);
|
||||||
set_initial_position(view, xwayland_surface);
|
set_initial_position(view, xwayland_surface);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue