Bug 8558

Summary: Window with no background contains random data with composite
Product: xorg Reporter: Olivier Fourdan <fourdan>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: high    
Version: 7.1 (2006.05)   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Test case
none
A window with no background without any compositor running
none
A window with no background with a compositor in Xorg 7.0
none
A window with no background with a compositor running in Xorg 7.1 none

Description Olivier Fourdan 2006-10-08 09:41:56 UTC
Creating a window with no pixmap and no bg color when using a compositor returns
a pixmap with random data.

Without a compositor,  creating a window w/out a back pixmap nor a bg color
gives a windows inheriting underlying content (ie whatever was under the window
at the time of creation).

When running a compositor with Xorg 7.0, it works the same. But when running a
compositor with Xorg 7.1, the window shows with random data, not unlike an
uninitialized pixmap...

This is a problem because many apps, like gtk+, create its top level windows
w/out bg pixmap or pixel and it shows when running a compositor.

I'll attach a test program that exhibit the problem with relevant screenshots.
Comment 1 Olivier Fourdan 2006-10-08 09:42:37 UTC
Created attachment 7288 [details]
Test case
Comment 2 Olivier Fourdan 2006-10-08 09:44:01 UTC
Created attachment 7289 [details]
A window with no background without any compositor running

This shows the "regular" expected behavior w/out any compositor running
Comment 3 Olivier Fourdan 2006-10-08 09:45:05 UTC
Created attachment 7290 [details]
A window with no background with a compositor in Xorg 7.0

The window has no content with a compositor in Xorg 7.0, this is the expected
behavior.
Comment 4 Olivier Fourdan 2006-10-08 09:47:13 UTC
Created attachment 7291 [details]
A window with no background with a compositor running in Xorg 7.1

Now, in Xorg 7.1, when a compositor is running, the window shows random data.
The problem shows equally when using XCompositeNameWindowPixmap () or when
accessing the drawable id directly. It seems that the buffer pixmap is not
properly initialized in Xorg 7.1.
Comment 5 Michel Dänzer 2006-10-08 12:51:11 UTC
The test case works fine here with current git (and the xfwm4 compositor :). Did
you build the X server yourself? Some distros use a patch with this effect for
performance reasons.
Comment 6 Olivier Fourdan 2006-10-09 00:40:57 UTC
I'm using Ubuntu Edgy on an AMD64.
Comment 7 Olivier Fourdan 2006-10-09 13:24:23 UTC
Yeap, ok, I've filled a bug in Launchpad for Ubuntu then.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.