Bug 1101 - Background pixmaps are painted with the wrong origin in child widgets of redirected windows
Summary: Background pixmaps are painted with the wrong origin in child widgets of redi...
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high major
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 351
  Show dependency treegraph
 
Reported: 2004-08-16 13:55 UTC by Fredrik Höglund
Modified: 2004-08-26 21:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Source file in C that when compiled and run shows the problem (713 bytes, text/plain)
2004-08-16 14:03 UTC, Fredrik Höglund
no flags Details

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.