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

Revert "Revert "Compositor: Add fade-in animation"" #702

Closed
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions compositor/WindowManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,21 @@ namespace GreeterCompositor {
public override void start () {
show_stage ();

unowned var background_actor = system_background.background_actor;
background_actor.opacity = 0;
background_actor.save_easing_state ();
background_actor.set_easing_duration (1000);
background_actor.set_easing_mode (Clutter.AnimationMode.EASE);
background_actor.opacity = 255;
background_actor.restore_easing_state ();

ui_group.opacity = 0;
ui_group.save_easing_state ();
ui_group.set_easing_duration (1000);
ui_group.set_easing_mode (Clutter.AnimationMode.EASE);
ui_group.opacity = 255;
ui_group.restore_easing_state ();

unowned Meta.Display display = get_display ();
display.gl_video_memory_purged.connect (() => {
refresh_background ();
Expand Down
4 changes: 2 additions & 2 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ public int main (string[] args) {
var settings_daemon = new Greeter.SettingsDaemon ();
settings_daemon.start ();

Gtk.init (ref args);

Greeter.SubprocessSupervisor compositor;
Greeter.SubprocessSupervisor wingpanel;

Expand All @@ -43,6 +41,8 @@ public int main (string[] args) {
critical (e.message);
}

Gtk.init (ref args);

var window = new Greeter.MainWindow ();
window.show_all ();

Expand Down