mirror of
https://github.com/labwc/labwc.git
synced 2026-02-25 01:40:28 -05:00
Convert SSD to scene nodes
This commit is contained in:
parent
f2d40a8d69
commit
5862b65f89
23 changed files with 1134 additions and 557 deletions
|
|
@ -7,6 +7,9 @@
|
|||
void
|
||||
view_set_activated(struct view *view, bool activated)
|
||||
{
|
||||
if (view->ssd.enabled) {
|
||||
ssd_set_active(view);
|
||||
}
|
||||
if (view->impl->set_activated) {
|
||||
view->impl->set_activated(view, activated);
|
||||
}
|
||||
|
|
@ -258,7 +261,7 @@ view_toggle_decorations(struct view *view)
|
|||
{
|
||||
if (!view->fullscreen) {
|
||||
view->ssd.enabled = !view->ssd.enabled;
|
||||
ssd_update_geometry(view, true);
|
||||
ssd_update_geometry(view);
|
||||
if (view->maximized) {
|
||||
view_apply_maximized_geometry(view);
|
||||
}
|
||||
|
|
@ -270,7 +273,7 @@ view_set_decorations(struct view *view, bool decorations)
|
|||
{
|
||||
if (view->ssd.enabled != decorations && !view->fullscreen) {
|
||||
view->ssd.enabled = decorations;
|
||||
ssd_update_geometry(view, true);
|
||||
ssd_update_geometry(view);
|
||||
if (view->maximized) {
|
||||
view_apply_maximized_geometry(view);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue