Bug 1101

Summary: Background pixmaps are painted with the wrong origin in child widgets of redirected windows
Product: xorg Reporter: Fredrik Höglund <fredrik>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 351    
Attachments:
Description Flags
Source file in C that when compiled and run shows the problem none

Description Fredrik Höglund 2004-08-16 13:55:38 UTC
When a child widget of a redirected window has a background pixmap set, the 
background pixmap is painted with the wrong origin (the origin of the 
redirected window, rather than that of the child widget). 
 
I've created a simple testcase that creates a 256x256 window, then creates and 
sets a background pixmap for the window. The background pixmap has the same 
size as the window, and is white with a black outline and an X drawn across 
it. 
 
If you start the application without a composite manager running, the window 
is rendered correctly. But as soon as you start xcompmgr (any mode), you'll 
see the background redrawn with the origin of the window manager frame, rather 
than that of the client window. 
 
This bug affects multiple KDE applications, but only when composite is enabled 
and a composite manager is running. 
 
It's possible this is the same problem as reported in bug 1095.
Comment 1 Fredrik Höglund 2004-08-16 14:03:47 UTC
Created attachment 652 [details]
Source file in C that when compiled and run shows the problem
Comment 2 Thomas Winischhofer 2004-08-16 17:20:24 UTC
An example screen shot exhibiting this problem in konsole is available at

http://www.winischhofer.net/snapshot0001.png

It should look like

http://www.winischhofer.net/snapshot0002.png
Comment 3 Owen Hofmann 2004-08-24 12:39:36 UTC
This seems to be what is causing graphical glitches in xfwm for me.

http://www.amherst.edu/~oshofmann/xfwm.png
Comment 4 Eric Anholt 2004-08-27 14:10:33 UTC
Fix committed.  (Wish I had seen this bug before having to figure out the fix!)

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.