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 92867 - track a global disable animations xsetting
track a global disable animations xsetting
Status: RESOLVED FIXED
Product: metacity
Classification: Other
Component: general
2.6.x
Other All
: High enhancement
: ---
Assigned To: Metacity maintainers list
Metacity maintainers list
: 118814 124321 134029 452636 (view as bug list)
Depends on: 98426 142582
Blocks:
 
 
Reported: 2002-09-09 16:01 UTC by Christian Neumair
Modified: 2008-06-29 22:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch. just a patch. (6.13 KB, patch)
2002-09-09 16:02 UTC, Christian Neumair
none Details | Review
Revamped the patch. Now reads the global animation key (see #98426) (4.67 KB, patch)
2002-12-01 11:23 UTC, Christian Neumair
none Details | Review
New patch against HEAD. My approach is the same, except that we now have some defs to make the beast GNOME-independent. (7.03 KB, patch)
2003-07-17 19:39 UTC, Christian Neumair
needs-work Details | Review

Description Christian Neumair 2002-09-09 16:01:11 UTC
This is my second piece of code ever so please tell me now what I've done
wrong.

see you,
 Chris
Comment 1 Christian Neumair 2002-09-09 16:02:03 UTC
Created attachment 10979 [details] [review]
patch. just a patch.
Comment 2 Christian Neumair 2002-09-09 16:04:05 UTC
Please ignore the first two line of the patch, they're trash.

see you,
 Chris
Comment 3 Christian Neumair 2002-09-09 17:55:39 UTC
I wonder why the <short> and <long> descriptions are not shown in
gconf-editor.

see you,
 Chris
Comment 4 Havoc Pennington 2002-09-24 20:24:49 UTC
Thanks for the patch, I'm still not a big fan of this feature; 
maybe we could speed the animation up a little bit by changing 
the #define for its duration.
Comment 5 Christian Neumair 2002-11-14 16:01:48 UTC
reopened.
Havoc: Do you like the way we solve the problem?

regs,
 Chris
Comment 6 Heath Harrelson 2002-11-18 19:05:14 UTC
This is a duplicate of bug 80509.  See also discussion in bug 95777.

I'm adding the patch keyword to this bug so it's easier to find,
should anyone decide they want the patch later.

*** This bug has been marked as a duplicate of 80509 ***
Comment 7 Christian Neumair 2002-12-01 11:23:47 UTC
Created attachment 12671 [details] [review]
Revamped the patch. Now reads the global animation key (see #98426)
Comment 8 Havoc Pennington 2002-12-01 17:02:05 UTC
This patch is going to get lost on a closed bug, it needs to be on 
an open bug. For now I'm just lazily reopening this one.

metacity tries to avoid reading gnome global settings directly, 
see:
 http://mail.gnome.org/archives/wm-spec-list/2002-November/msg00049.html
there are various ways to set it up, needs sorting out.

Does the panel now toggle/follow this global setting?
Comment 9 Havoc Pennington 2003-02-25 21:19:58 UTC
You also need to be able to disable animations in GTK, so I would 
suggest an xsetting (and metacity could track that).
Comment 10 Christian Neumair 2003-07-17 19:39:36 UTC
Created attachment 18391 [details] [review]
New patch against HEAD. My approach is the same, except that we now have some defs to make the beast GNOME-independent.
Comment 11 Havoc Pennington 2003-07-17 19:43:15 UTC
That's not quite what I meant - the way it should work is similar to 
how the double click time setting currently works. 

i.e. there's a gtk patch first.
Comment 12 Rob Adams 2003-07-31 22:54:09 UTC
*** Bug 118814 has been marked as a duplicate of this bug. ***
Comment 13 Havoc Pennington 2003-07-31 23:56:15 UTC
The reduced_resources patch on a branch in cvs and in current 
Red Hat beta packages also disables animation as a side effect.
(Though it's total bullshit since the animation uses no measurable
CPU...)
Comment 14 Dylan Griffiths 2003-08-01 05:25:59 UTC
The animation does, however, interfere with other windows' display. 
That's not total BS, Havoc.
Comment 15 Rob Adams 2003-08-01 06:19:59 UTC
For what, half a second?  And only when you minimize a window?  Don't
be so melodramatic.  If your application doesn't redraw in response to
an expose event then you need to rewrite it.
Comment 16 Havoc Pennington 2003-08-01 18:41:36 UTC
Purely saying that the animation is not a performance concern, and 
thus it doesn't make a lot of sense that I lumped it into the 
reduced_resources setting.
Comment 17 Rob Adams 2003-10-10 21:58:20 UTC
*** Bug 124321 has been marked as a duplicate of this bug. ***
Comment 18 James Bennett 2004-01-11 07:43:11 UTC
$0.02 from someone who would've filed a bug on this if it didn't
already exist:

Regardless of the actual resource usage (which, I'll admit, is
probably negligible) the animation can create the perception of
slowness or unresponsiveness, especially on a system with limited
video memory or CPU where the user expects such slowness already. 
Unfortunately, telling users "it's all in your head, it doesn't really
interfere with anything" isn't a very useful response, so it'd
probably be a good idea to allow some of this eye candy to be turned off.
Comment 19 Elijah Newren 2004-02-10 18:40:43 UTC
*** Bug 134029 has been marked as a duplicate of this bug. ***
Comment 20 Simon Porter 2004-02-25 03:00:31 UTC
Notes: Changed to GNOMEVER2.7 keyword. Added PATCH and bugsquad
keywords. Changed to high priority for better visability
Comment 21 Christian Neumair 2004-06-03 10:50:35 UTC
Slight update: #142582 was closed. GTK+ guys don't seem to like that kind of
xsettings. Is it reasonable to track GNOME's GConf key if it's available? My 2nd
patch contained that bit.
Note that metacity wouldn't depend on GNOME then, it would just optionally check
for the key being set (/desktop/gnome/interface/enable_animations).

regs,
 Chris
Comment 22 Christian Neumair 2005-01-30 10:25:41 UTC
Ping. #142582 was reopened.
Comment 23 Rob Adams 2005-05-26 20:22:15 UTC
Comment on attachment 18391 [details] [review]
New patch against HEAD. My approach is the same, except that we now have some defs to make the beast GNOME-independent.

This uses a gconf key; need  to use the XSetting?
Comment 24 Christian Neumair 2005-05-26 20:23:18 UTC
Rob: Aren't they in sync? Or is it just an issue of cleanness?
Comment 25 Christian Neumair 2005-05-26 20:23:59 UTC
...turns out that the xsetting hasn't been added yet.
Comment 26 Havoc Pennington 2005-05-27 14:13:26 UTC
Comment on attachment 18391 [details] [review]
New patch against HEAD. My approach is the same, except that we now have some defs to make the beast GNOME-independent.

I think the gconf key is fine if that's how gnome is doing it.

I don't think the configure check is a good idea, as long as we ensure that
when the key is unset (not present) we treat it as "animations enabled" - this
means using gconf_client_get_value() so we can detect a NULL value. When doing
so be sure to check the type of the value when it's not NULL before treating it
as bool.

meta_prefs_get_enable_animations() 
should probably return 
(!reduced_resources && enable_animations)

The places where you're calling get_enable_animations() I would expect to have
something about reduced_resources now, maybe we hadn't applied
reduced_resources patch when you did this patch?
Comment 27 Elijah Newren 2005-10-07 16:08:14 UTC
Remove old target milestones on old bugs; sorry for the spam.
Comment 28 Lionel Dricot 2006-04-05 12:35:56 UTC
It seems that this feature would be appreciated downstream :
https://launchpad.net/distros/ubuntu/+source/metacity/+bug/13189 ;-)
Comment 29 Ilmari Vacklin 2007-06-06 20:33:07 UTC
Any progress on this one? Continuing discussion from bug 80509. This one probably needs a new name that is closer to what is being proposed here (gconf key). I'm sorry I can't comment on the patches, not being familiar with the codebase.
Comment 30 Havoc Pennington 2007-06-06 21:05:09 UTC
bug 444659 may be relevant also
Comment 31 Thomas Thurman 2007-07-24 13:15:23 UTC
I'll see whether I can get something working for the next unstable release.
Comment 32 Elijah Newren 2007-12-08 15:13:47 UTC
*** Bug 452636 has been marked as a duplicate of this bug. ***
Comment 33 Elijah Newren 2007-12-09 21:56:35 UTC
*** Bug 502644 has been marked as a duplicate of this bug. ***
Comment 34 Thomas Thurman 2008-06-29 22:00:55 UTC
After the recent refactor of effects.c, this is actually a good deal easier.  FIXED.