shell extension, global.stage.add_effect
- From: Alexandre Dufournet <alexandre dufournet gmail com>
- To: gnome-shell-list gnome org
- Subject: shell extension, global.stage.add_effect
- Date: Sun, 13 Dec 2015 18:18:33 +0000
Hi everyone,
I'm new to the gnome shell development world and did not manage to find a solution to my problem over the week-end, hence this e-mail.
I'm trying to add an effect to the global.stage actor, but I noticed that doing so would freeze the rendering. (a still image stays displayed on the screen)
Is this behaviour coming from the fact that suddenly the stage actor
isn't transparent any more? If so, is there any chance of finding a
proper solution?
I managed to work around that freeze by looking at
this snippet.I believe the trick is to force the frame to be fully re-rendered when this is executed:
this._actor.scale_y = 1.0;
But I do understand this is a bit dirty and not suitable for distribution.
The goal of my side project is to implement a F.lux or redshift like extension, and follows
this conversation. I'm currently focusing on making the Colorize effect work before potentially writing my own shader. If that's of any help, I pushed my code to github here:
https://github.com/alexduf/dopplerThanks in advance for your help!
Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]