Skip to content

Add CRT effect shader and animation while shutting down#2770

Draft
SubhadeepJasu wants to merge 1 commit intoelementary:mainfrom
SubhadeepJasu:fades
Draft

Add CRT effect shader and animation while shutting down#2770
SubhadeepJasu wants to merge 1 commit intoelementary:mainfrom
SubhadeepJasu:fades

Conversation

@SubhadeepJasu
Copy link

Add a nice CRT TV-Off animation when shutdown is called.

untitled.mp4

Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I don't know if there's a proper way to do this but I'm just gonna leave some comments.

The best way I could think of how to do this is in the session interface where we get the signal from wingpanel to shutdown or log out etc. We could intercept the signal, play the animation and only then relay it. Not sure if that would work though or if I'm missing something.

The file with the session proxy im referring:

proxy.confirmed_logout.connect (() => confirmed_logout ());


WindowStateSaver.on_shutdown ();

var shutdown_curtain = new Gala.ShutdownCurtain (ctx);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK at this point Mutter has already completely shutdown. So we don't have a stage nor a frame clock nor anything anymore

@SubhadeepJasu
Copy link
Author

Okay I will check that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants