Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PanelClone: Animate in #1930

Merged
merged 4 commits into from
May 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/ShellClients/PanelClone.vala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class Gala.PanelClone : Object {
}
}

public bool panel_hidden { get; private set; default = false; }
public bool panel_hidden { get; private set; default = true; }

private SafeWindowClone clone;
private Meta.WindowActor actor;
Expand All @@ -42,9 +42,7 @@ public class Gala.PanelClone : Object {
}

construct {
clone = new SafeWindowClone (panel.window, true) {
visible = false
};
clone = new SafeWindowClone (panel.window, true);
wm.ui_group.add_child (clone);

actor = (Meta.WindowActor) panel.window.get_compositor_private ();
Expand All @@ -67,6 +65,14 @@ public class Gala.PanelClone : Object {

update_visible ();
update_clone_position ();

Idle.add_once (() => {
if (hide_mode == NEVER) {
show ();
} else {
hide_tracker.schedule_update ();
}
});
}

private void update_visible () {
Expand Down
Loading