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 609339 - Initialize global->root_pixmap to the stage color
Initialize global->root_pixmap to the stage color
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2010-02-08 15:57 UTC by Dan Winship
Modified: 2010-02-08 19:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Initialize global->root_pixmap to the stage color (2.83 KB, patch)
2010-02-08 15:57 UTC, Dan Winship
committed Details | Review

Description Dan Winship 2010-02-08 15:57:20 UTC
Since the fix for bug 591912, the blue default background when running
in --xephyr mode no longer shows up in the overview. This fixes that.
Comment 1 Dan Winship 2010-02-08 15:57:22 UTC
Created attachment 153273 [details] [review]
Initialize global->root_pixmap to the stage color

Fixes drawing of the overview in the case where there is no root pixmap
(eg, --xephyr mode).
Comment 2 Dan Winship 2010-02-08 15:59:25 UTC
should have clarified; the workaround for not drawing an uninitialized texture becomes unnecessary, since the texture would never be uninitialized now
Comment 3 Owen Taylor 2010-02-08 16:44:20 UTC
Review of attachment 153273 [details] [review]:

Looks fine. Perhaps obviously The "the workaround for not drawing an uninitialized texture
becomes unnecessary, since the texture would never be uninitialized now" should be included in the commit message.

::: src/shell-global.c
@@ +1035,3 @@
+      clutter_texture_set_from_rgb_data (CLUTTER_TEXTURE (global->root_pixmap),
+                                         (const guchar *)&stage_color, FALSE,
+                                         1, 1, 3, 3, 0, NULL);

Grumble :-). OK. Could use a /* width, height, rowstride, bpp, flags */
on the mysterious series of numbers. Could probably use a /* first three bytes of ClutterColor structure are RGB */ to explain the cast.
Comment 4 Dan Winship 2010-02-08 19:48:09 UTC
updated and pushed

Attachment 153273 [details] pushed as 8e759d7 - Initialize global->root_pixmap to the stage color