Bug 18050

Summary: [945GM DRI2]The XFCE window title bar shows incorrectly
Product: xorg Reporter: Li Peng <peng.li>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high CC: pierre
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 18858    
Attachments:
Description Flags
screenshot for XFCE terminal
none
Catch solid fills to 1bpp targets none

Description Li Peng 2008-10-13 19:08:39 UTC
Hardware platform : eeePC

Code
===========================================================
git://anongit.freedesktop.org:/git/xorg/proto/dri2proto (master branch)
git://anongit.freedesktop.org:/git/mesa/drm (master)
git://anongit.freedesktop.org:/git/mesa/mesa (master)
git://anongit.freedesktop.org:/git/xorg/xserver (master with dri2 enabled)
git://anongit.freedesktop.org:/git/xorg/driver/xf86-video-intel (dri2 branch, disable tiling and enable UXA)

Reproduce Steps(steps,current result, reproduce possibility)
===========================================================
1. run startxfce4 
2. click to open a terminal
3. you will see the window title bar is messed up.

Expected result:
===========================================================
the title and buttons on title bar should be shown clearly
the buttons functions are easy to use by mouse click
the windows can be moved and activated via mouse operations on title bar.
Comment 1 Li Peng 2008-10-13 19:12:26 UTC
change to high priority
Comment 3 Li Peng 2008-10-13 20:17:48 UTC
Created attachment 19641 [details]
screenshot for XFCE terminal

you can see the messed window bar of this terminal
Comment 4 Gordon Jin 2008-10-14 00:14:20 UTC
Does this only happen with DRI2?
Comment 5 Li Peng 2008-10-14 00:23:10 UTC
(In reply to comment #4)
> Does this only happen with DRI2?
> 

Yes, I also tried EXA, which is fine.
Actually I suspect it is a UXA issue.
Comment 6 Pierre Willenbrock 2008-12-03 07:56:11 UTC
I am seeing the same with gkrellm and the "Demaximize"-button in the KDE B2 window border theme(the other buttons are unaffected).
Comment 7 Pierre Willenbrock 2008-12-03 12:05:13 UTC
Created attachment 20768 [details] [review]
Catch solid fills to 1bpp targets

This patch fixes my problems. Perhaps the original problem is fixed, too?
Comment 8 Eric Anholt 2008-12-05 12:28:49 UTC
Actually, it's anything <8bpp for solid and copy.  Huge thanks for tracking down this issue.

commit 2e3c098c5ed9a8451713dc754a5f086992249336
Author: Eric Anholt <eric@anholt.net>
Date:   Fri Dec 5 12:21:53 2008 -0800

    uxa: Reject solid/copy to under-8bpp destinations.
    
    EXA wouldn't create pixmaps for under-8bpp, but UXA does.  Fixes
    mis-rendering in xfwm, evolution message compose, firefox link
    drag'n'drop, and I'm sure more.  Big thanks to Pierre Willenbrock for
    debugging the issue!
    
    Bug #18050

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.