Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15265 - qt overrides xcursor. add use flag to enable it and patch to configure
Summary: qt overrides xcursor. add use flag to enable it and patch to configure
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-07 06:08 UTC by Faye Pearson
Modified: 2005-01-14 07:28 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to add xcursor option to configure (qt-xcursor.diff,2.94 KB, patch)
2003-02-07 06:10 UTC, Faye Pearson
Details | Diff
cursor.diff from faye (cursor.diff,2.94 KB, patch)
2003-02-08 18:09 UTC, Seemant Kulleen (RETIRED)
Details | Diff
qt-3.0.1-r3 diff also from faye (qt.ebuild.diff,1.29 KB, patch)
2003-02-08 18:10 UTC, Seemant Kulleen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Faye Pearson 2003-02-07 06:08:14 UTC
QT overrides several of the xcursor cursors from XFree86 4.2.99 and greater.  This can cause 
things to be really slow unles you know how to turn them off.  But why turn them off when you 
can compile QT to let them in! 

Reproducible: Always
Steps to Reproduce:
1. Install xfree86 4.2.99 
2. run kde 
 
Actual Results:  
cursor disappear for several seconds when you move over icons or on window borders unless 
you've enabled XCURSOR_CORE=true 

Expected Results:  
used the nice xcursors :)
Comment 1 Faye Pearson 2003-02-07 06:10:45 UTC
Created attachment 8005 [details, diff]
patch to add xcursor option to configure

This goes with the ebuild I wrote to optionally add xcursor support
Comment 2 Faye Pearson 2003-02-07 06:12:27 UTC
not sure why the patch upload didn't work.  If the developer emails me I'll send both patches via 
email. 
Comment 3 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-08 18:09:58 UTC
Created attachment 8057 [details, diff]
cursor.diff from faye
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2003-02-08 18:10:32 UTC
Created attachment 8058 [details, diff]
qt-3.0.1-r3 diff also from faye
Comment 5 Faye Pearson 2003-02-20 08:28:47 UTC
OK, the switch between normal and new cursors shouldn't be slow.  
Workaround add Option "SWcursor" to override accel feature being used.  
Replacement DRI module in kernel fixes the problem. 
 
All this patch does is let you use more pretty cursors, which is a good 
thing. 
Comment 6 Hannes Mehnert (RETIRED) gentoo-dev 2003-03-04 17:46:40 UTC
hmm, my mouse cursor does work without this patch. 
for which mouse cursors is this needed? 
if this patch makes sense, should we add 
myconf="${myconf} -xcursor" by default to qt ebuild? 
or will this break xfree-4.2.x? 
Comment 7 Faye Pearson 2003-03-10 05:48:20 UTC
basically QT overrides several X cursors which means that these 
black/white ones get used in place of the pretty XCURSOR extension ones. 
 
All the patch does is enable the USE_APPROXIMATE_CURSORS (IIRC) 
define which stops it from overriding, for example, the resize cursors, if you 
go to resize a window without this patch you get the old black/white 
versions. 
 
It's non destructive to enable it on any system, but I wouldn't do it by 
default as the QT cursors are quite nice unless you've got better ones to 
use :) 
Comment 8 Andreas Simon 2003-12-27 04:27:32 UTC
"basically QT overrides several X cursors which means that these 
black/white ones get used in place of the pretty XCURSOR extension ones."

Qt offers more cursors then xfree. AFAIK what you described happens because Qt uses sometimes a cursor which does not exist in a given cursor theme, but links can help. Links which the Gentoo cursor themes are usually missing are:

00008160000006810000408080010102 -> v_double_arrow
028006030e0e7ebffc7f7070c0600140 -> h_double_arrow
03b6e0fcb3499374a867c041f52298f0 -> crossed_circle
08e8e1c95fe2fc01f976f1e063a24ccd -> left_ptr_watch
14fef782d02440884392942c11205230 -> sb_h_double_arrow
2870a09082c103050810ffdffffe0204 -> sb_v_double_arrow
3ecb610c1bf2410f44200f48c40d3599 -> left_ptr_watch
4498f0e0c1937ffe01fd06f973665830 -> left_ptr
9d800788f1b08800ae810202380a0822 -> hand1
c7088f0f3e6c8088236ef8e1e3e70000 -> bd_double_arrow
d9ce0ab605698f320427677b458ad60b -> question_arrow
e29285e634086352946a0e7090d73106 -> hand2
fcf1c3c7cd4491d801f1e1c78f100000 -> fd_double_arrow

(I have these names from a buried post on kde-look.org)

In this context I could imagine that XCURSORS_CORE=true forces Qt to use X11 core pointers only. But I haven't checked this and it's only speculation from my part.
Comment 9 Dan Armak (RETIRED) gentoo-dev 2004-10-23 14:25:09 UTC
Hmm, the interesting bugs everyone forgot about (and that I never had anything
to do with)...
Updates please; is this still relevant with current qt and x.org versions?
Besides, according to comment #8, qt doesn't need to be patched; rather this
bug should be redirected towards the cursor theme people. (Another thing I'm
not involved with, so can't comment - I never used XCURSOR to begin with,
I'm just cleaning up old bugs.)
Comment 10 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-14 07:28:56 UTC
This doesn't apply to newer versions of qt, I guess. Closing.