After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 756312 - Optimize backdrop state changes
Optimize backdrop state changes
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: GtkStyleContext
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-10-09 18:30 UTC by Cosimo Cecchi
Modified: 2018-04-15 00:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.00 KB, patch)
2015-10-09 18:30 UTC, Cosimo Cecchi
none Details | Review

Description Cosimo Cecchi 2015-10-09 18:30:23 UTC
Created attachment 312972 [details] [review]
patch

See attached patch and commit message. This is something we added downstream at Endless for our app store and would be nice to upstream if possible.
Comment 1 Matthias Clasen 2015-10-09 18:31:51 UTC
Nope. I don't want random environment variables like that.
Comment 2 Cosimo Cecchi 2015-10-09 18:33:53 UTC
FWIW I wrote it this way because it's similar to GTK_OVERLAY_SCROLLING that already exists...
I'm fine keeping this downstream only if it's not acceptable, but I am curious if you disagree with the implementation or the reason for this patch in the first place.
Comment 3 Matthias Clasen 2015-10-09 18:38:49 UTC
I don't feel great about the existing 'random' environment variables we have, and don't want to add more if I can help it.

I disagree with the implementation as well though: Your commit message says: "...this is a lo-tech way for applications...". But environment variables are not for applications, they are for users.

Ultimatively, if backdrop is too expensive for you, just use a theme that doesn't have it ?
Comment 4 Cosimo Cecchi 2015-10-09 18:41:08 UTC
Well adding the environment variable was much easier than adding a special API - and I am not sure that adding an API to disable backdrop would be a good idea.

For what is worth, the theme already does not have backdrop selector; what's expensive is the invalidation of the whole widget tree, which will happen regardless of whether the theme supports backdrop or not.
Comment 5 Matthias Clasen 2015-10-09 18:53:34 UTC
(In reply to Cosimo Cecchi from comment #4)
> 
> For what is worth, the theme already does not have backdrop selector; what's
> expensive is the invalidation of the whole widget tree, which will happen
> regardless of whether the theme supports backdrop or not.

Now, that is something we can and should optimize away.... but that's of course not your deadline-friendly quick hack
Comment 6 Matthias Clasen 2015-10-09 20:39:16 UTC
From irc discussion, the way to optimize this would be to add GDK_CSS_CHANGE constants for STATE_BACKDROP as opposed to just STATE, and then maintain them properly.
Comment 7 Matthias Clasen 2018-02-10 05:18:34 UTC
We're moving to gitlab! As part of this move, we are moving bugs to NEEDINFO if they haven't seen activity in more than a year. If this issue is still important to you and still relevant with GTK+ 3.22 or master, please reopen it and we will migrate it to gitlab.
Comment 8 Matthias Clasen 2018-04-15 00:15:57 UTC
As announced a while ago, we are migrating to gitlab, and bugs that haven't seen activity in the last year or so will be not be migrated, but closed out in bugzilla.

If this bug is still relevant to you, you can open a new issue describing the symptoms and how to reproduce it with gtk 3.22.x or master in gitlab:

https://gitlab.gnome.org/GNOME/gtk/issues/new