Skip to content

Commit

Permalink
Revert "Revert "Compositor: Add fade-in animation (#697)" (#701)"
Browse files Browse the repository at this point in the history
This reverts commit aafd149.
  • Loading branch information
danirabbit authored Feb 8, 2024
1 parent aafd149 commit caf7614
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
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

0 comments on commit caf7614

Please sign in to comment.