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 694227 - Tracker bug for regressions in background handling
Tracker bug for regressions in background handling
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2013-02-20 00:45 UTC by Giovanni Campagna
Modified: 2013-02-20 16:37 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
WorkspaceThumbnail: fix typo in stacking code (969 bytes, patch)
2013-02-20 00:45 UTC, Giovanni Campagna
committed Details | Review
Background: ignore cancellation errors (1.25 KB, patch)
2013-02-20 00:57 UTC, Giovanni Campagna
none Details | Review
layout: Hide the message tray and OSK during the startup animation (1.15 KB, patch)
2013-02-20 01:16 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
LayoutManager: add missing constant (794 bytes, patch)
2013-02-20 01:19 UTC, Giovanni Campagna
committed Details | Review
BackgroundMenu: fix regression from new background handling (1.71 KB, patch)
2013-02-20 01:19 UTC, Giovanni Campagna
committed Details | Review
layout: add back BACKGROUND_ANIMATION_FADE_TIME constant (1.80 KB, patch)
2013-02-20 01:22 UTC, Ray Strode [halfline]
accepted-commit_now Details | Review
layout: add back startingUp state variable (3.83 KB, patch)
2013-02-20 01:22 UTC, Ray Strode [halfline]
committed Details | Review
layout: invert isGreeter check (2.11 KB, patch)
2013-02-20 01:22 UTC, Ray Strode [halfline]
committed Details | Review
screenShield: don't use Bin for BackgroundManager container (2.44 KB, patch)
2013-02-20 02:54 UTC, Ray Strode [halfline]
committed Details | Review
background: destroy actors don't remove them from their parent (3.74 KB, patch)
2013-02-20 02:54 UTC, Ray Strode [halfline]
committed Details | Review
layout: Don't bother updating the regions in the greeter (962 bytes, patch)
2013-02-20 05:12 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
layout: Remove freezeUpdateRegions/thawUpdateRegions (2.38 KB, patch)
2013-02-20 05:12 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
layout: Rebuild struts and the input region when the Shell starts up (3.01 KB, patch)
2013-02-20 05:12 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
layout: Clean up consoleBackgroundGroup (824 bytes, patch)
2013-02-20 05:12 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review
layout: Set the no_clear_hint on initialize (2.00 KB, patch)
2013-02-20 05:12 UTC, Jasper St. Pierre (not reading bugmail)
rejected Details | Review

Description Giovanni Campagna 2013-02-20 00:45:02 UTC
Misc stuff, as I find it while testing.
Comment 1 Giovanni Campagna 2013-02-20 00:45:33 UTC
Created attachment 236862 [details] [review]
WorkspaceThumbnail: fix typo in stacking code

Was causing thumbnails to be below the background.
Comment 2 Jasper St. Pierre (not reading bugmail) 2013-02-20 00:46:36 UTC
Review of attachment 236862 [details] [review]:

OK.
Comment 3 Giovanni Campagna 2013-02-20 00:57:13 UTC
Created attachment 236868 [details] [review]
Background: ignore cancellation errors

If the request cancellable is cancelled, the requesting background was
destroyed, so don't bother reporting the result.
Comment 4 Giovanni Campagna 2013-02-20 01:00:04 UTC
Comment on attachment 236862 [details] [review]
WorkspaceThumbnail: fix typo in stacking code

Attachment 236862 [details] pushed as f3df62f - WorkspaceThumbnail: fix typo in stacking code
Comment 5 Jasper St. Pierre (not reading bugmail) 2013-02-20 01:16:07 UTC
Created attachment 236873 [details] [review]
layout: Hide the message tray and OSK during the startup animation
Comment 6 Giovanni Campagna 2013-02-20 01:19:21 UTC
Created attachment 236874 [details] [review]
LayoutManager: add missing constant
Comment 7 Giovanni Campagna 2013-02-20 01:19:49 UTC
Created attachment 236875 [details] [review]
BackgroundMenu: fix regression from new background handling

BackgroundMenu must ensure the actor it attaches to is reactive, and
the layout manager must create a background menu for the first background
too.

Not ready to go in now, needs the startingUp fix.
Comment 8 Giovanni Campagna 2013-02-20 01:21:22 UTC
Review of attachment 236873 [details] [review]:

LGTM
Comment 9 Ray Strode [halfline] 2013-02-20 01:22:02 UTC
Created attachment 236876 [details] [review]
layout: add back BACKGROUND_ANIMATION_FADE_TIME constant

I lost it at the last minute when refactoring some code
following review.
Comment 10 Ray Strode [halfline] 2013-02-20 01:22:04 UTC
Created attachment 236877 [details] [review]
layout: add back startingUp state variable

I dropped it on accident during last minute refactoring
Comment 11 Ray Strode [halfline] 2013-02-20 01:22:07 UTC
Created attachment 236878 [details] [review]
layout: invert isGreeter check

I somehow lost an exclamation point.
Comment 12 Ray Strode [halfline] 2013-02-20 01:23:04 UTC
Review of attachment 236874 [details] [review]:

oh you already found this one.
Comment 13 Giovanni Campagna 2013-02-20 01:23:11 UTC
Review of attachment 236876 [details] [review]:

Lol (see comment #6)
Comment 14 Giovanni Campagna 2013-02-20 01:23:55 UTC
Review of attachment 236877 [details] [review]:

Ok
Comment 15 Giovanni Campagna 2013-02-20 01:24:14 UTC
Review of attachment 236878 [details] [review]:

Ah, I see the logic now.
Comment 16 Ray Strode [halfline] 2013-02-20 01:26:37 UTC
Review of attachment 236875 [details] [review]:

seems fine.
Comment 17 Giovanni Campagna 2013-02-20 01:26:58 UTC
Comment on attachment 236874 [details] [review]
LayoutManager: add missing constant

Attachment 236874 [details] pushed as e4af954 - LayoutManager: add missing constant
Comment 18 Ray Strode [halfline] 2013-02-20 01:51:40 UTC
Comment on attachment 236868 [details] [review]
Background: ignore cancellation errors

(pushing a slightly different patch after discussion with gcampax on irc)
Comment 19 Ray Strode [halfline] 2013-02-20 01:57:47 UTC
Attachment 236873 [details] pushed as 1188b1b - layout: Hide the message tray and OSK during the startup animation
Attachment 236875 [details] pushed as 079041c - BackgroundMenu: fix regression from new background handling
Attachment 236877 [details] pushed as 6484da2 - layout: add back startingUp state variable
Attachment 236878 [details] pushed as 905c493 - layout: invert isGreeter check
Comment 20 Ray Strode [halfline] 2013-02-20 02:54:06 UTC
Created attachment 236880 [details] [review]
screenShield: don't use Bin for BackgroundManager container

St.Bin() really only expects one child at a time, and the
BackgroundManager will add two. This can cause assertion
failures when destroying one of the background actors.
Comment 21 Ray Strode [halfline] 2013-02-20 02:54:08 UTC
Created attachment 236881 [details] [review]
background: destroy actors don't remove them from their parent

This reads better, and it also fixes a warning when background
is changed while transitioning to the overview.
Comment 22 Jasper St. Pierre (not reading bugmail) 2013-02-20 02:57:54 UTC
Review of attachment 236881 [details] [review]:

OK.
Comment 23 Ray Strode [halfline] 2013-02-20 03:06:37 UTC
(pushing both since the second patch seemingly causes

  Clutter:ERROR:./clutter-actor.c:5778:clutter_actor_dispose: assertion failed: (priv->parent == NULL)

without the first)

Attachment 236880 [details] pushed as 34443da - screenShield: don't use Bin for BackgroundManager container
Attachment 236881 [details] pushed as dcacbb3 - background: destroy actors don't remove them from their parent
Comment 24 Jasper St. Pierre (not reading bugmail) 2013-02-20 05:12:11 UTC
Created attachment 236890 [details] [review]
layout: Don't bother updating the regions in the greeter

The greeter is always full-screen, so this should never matter.
Comment 25 Jasper St. Pierre (not reading bugmail) 2013-02-20 05:12:14 UTC
Created attachment 236891 [details] [review]
layout: Remove freezeUpdateRegions/thawUpdateRegions

Due to a bad rebase causing freezeUpdateCount to never get initialized,
these functions effectively did nothing. Since we're going to go to a
different mechanism for freezing region updates, let's just tear these
out now instead of fixing them before tearing them out.
Comment 26 Jasper St. Pierre (not reading bugmail) 2013-02-20 05:12:18 UTC
Created attachment 236892 [details] [review]
layout: Rebuild struts and the input region when the Shell starts up

This means that windows will be positioned correctly with respect
to the panel when the shell starts up, and there won't be adjusting
after the session animation zooms in entirely.
Comment 27 Jasper St. Pierre (not reading bugmail) 2013-02-20 05:12:21 UTC
Created attachment 236893 [details] [review]
layout: Clean up consoleBackgroundGroup

We shouldn't leave a reference to a destroyed actor just hanging
around.
Comment 28 Jasper St. Pierre (not reading bugmail) 2013-02-20 05:12:24 UTC
Created attachment 236894 [details] [review]
layout: Set the no_clear_hint on initialize

With the new startup animations and background work, we should
never see the stage.
Comment 29 drago01 2013-02-20 08:56:21 UTC
Review of attachment 236890 [details] [review]:

Does this fix anything or is it just an micro optimization?
Comment 30 drago01 2013-02-20 08:59:01 UTC
Review of attachment 236891 [details] [review]:

OK.
Comment 31 drago01 2013-02-20 08:59:40 UTC
Review of attachment 236892 [details] [review]:

OK.
Comment 32 Jasper St. Pierre (not reading bugmail) 2013-02-20 08:59:50 UTC
Review of attachment 236890 [details] [review]:

It's more of a code cleanup that came out after I started to remove freezeUpdateRegions / thawUpdateRegions. Not essential.
Comment 33 drago01 2013-02-20 09:00:12 UTC
Review of attachment 236893 [details] [review]:

OK.
Comment 34 drago01 2013-02-20 09:02:10 UTC
Review of attachment 236894 [details] [review]:

This is needed for multi monitor setups, there will be empty areas of the stage (visible in screenshots and/or screencasts), when the monitors have different dimensions.
Comment 35 Jasper St. Pierre (not reading bugmail) 2013-02-20 09:03:11 UTC
Review of attachment 236894 [details] [review]:

Does this mean that the no_clear_hint before is wrong?
Comment 36 drago01 2013-02-20 09:21:29 UTC
(In reply to comment #35)
> Review of attachment 236894 [details] [review]:
> 
> Does this mean that the no_clear_hint before is wrong?

 was talking about the bg color see bug 683514  ... the clear hint prevents clutter from clearing the stage on every paint (which isn't cheap with a large stage as ours). 

So strictly speaking yes (even though it seems to work this way) but I wouldn't remove it because most of the time we don't have such areas visible. We probably should unset it if we end up with such a geometry but otherwise leave it for the more common case.
Comment 37 Ray Strode [halfline] 2013-02-20 12:26:20 UTC
that bug suggests we should put a background with noise-texture there
Comment 38 Jasper St. Pierre (not reading bugmail) 2013-02-20 16:37:01 UTC
Attachment 236890 [details] pushed as de3d3c1 - layout: Don't bother updating the regions in the greeter
Attachment 236891 [details] pushed as d5d5177 - layout: Remove freezeUpdateRegions/thawUpdateRegions
Attachment 236892 [details] pushed as 5d3c901 - layout: Rebuild struts and the input region when the Shell starts up
Attachment 236893 [details] pushed as b4678a1 - layout: Clean up consoleBackgroundGroup


OK, let's push this for now.