Bug 8558 - Window with no background contains random data with composite
Summary: Window with no background contains random data with composite
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.1 (2006.05)
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-08 09:41 UTC by Olivier Fourdan
Modified: 2006-10-09 13:24 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Test case (1.47 KB, text/x-csrc)
2006-10-08 09:42 UTC, Olivier Fourdan
no flags Details
A window with no background without any compositor running (4.24 KB, image/png)
2006-10-08 09:44 UTC, Olivier Fourdan
no flags Details
A window with no background with a compositor in Xorg 7.0 (4.06 KB, image/png)
2006-10-08 09:45 UTC, Olivier Fourdan
no flags Details
A window with no background with a compositor running in Xorg 7.1 (9.88 KB, image/png)
2006-10-08 09:47 UTC, Olivier Fourdan
no flags Details

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.