Bug 327273 - KWin::Cursor should map Qt::SizeAllCursor to fleur instead of size_all
Summary: KWin::Cursor should map Qt::SizeAllCursor to fleur instead of size_all
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: core (show other bugs)
Version: 4.11.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 327118 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-11-07 12:36 UTC by Thomas Lübking
Modified: 2016-11-02 12:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Lübking 2013-11-07 12:36:10 UTC
Or somehow fallback to fleur.

Cursor themes on X11 remain a terrible mess, but /usr/include/X11/cursorfont.h defines "fleur" (52) while "size_all" seems Qt specific so themes can rather be expected to support former than latter.

Reproducible: Always
Comment 1 Thomas Lübking 2013-11-07 12:36:59 UTC
*** Bug 327118 has been marked as a duplicate of this bug. ***
Comment 2 Jethro Beekman 2013-11-09 17:48:09 UTC
There are other cursors that need mapping as well, e.g. Qt::PointingHandCursor to hand1/hand2 .

I'm using this page as a reference http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/qcursor.html - not sure if that's exhaustive.

The following Qt cursors have a direct mapping to something from /usr/include/X11/cursorfont.h:

forbidden: circle
ibeam: xterm
pointing_hand: hand1/hand2?
size_all: fleur
size_hor: sb_h_double_arrow
size_ver: sb_v_double_arrow
up_arrow: sb_up_arrow
wait: watch

The following Qt cursors don't have direct mapping to cursorfont.h, listed are the alternatives from the cursor-fix script:

closedhand: 05e88622050804100c20044008402080 4498f0e0c1937ffe01fd06f973665830 9081237383d90e509aa00f00170e968f fcf21c00b30f7e3f83fe0dfd12e71cff
dnd-copy: link alias 3085a0e285430894940527032f8b26df 640fb0e74195791501fd1ed57b41487f a2a266d0498c3104214a47bd64ab0fc8
dnd-link: copy 1081e37283d90000800003c07f3ef6bf 6407b0e94181790501fd1e167b474872 b66166c04f8c3109214a4fbd64a50fc8
dnd-move: move
left_ptr_watch: half-busy 3ecb610c1bf2410f44200f48c40d3599 00000000000000020006000e7e9ffc3f 08e8e1c95fe2fc01f976f1e063a24ccd
openhand: all_scroll all-scroll 9141b49c8149039304290b508d208c40
size_bdiag: fd_double_arrow bottom_left_corner top_right_corner fcf1c3c7cd4491d801f1e1c78f100000
size_fdiag: bd_double_arrow bottom_right_corner top_left_corner c7088f0f3e6c8088236ef8e1e3e70000
split_h: 14fef782d02440884392942c11205230 size_hor
split_v: 2870a09082c103050810ffdffffe0204 size_ver
whats_this: left_ptr_help help question_arrow dnd-ask d9ce0ab605698f320427677b458ad60b 5c6cd98b3f3ebcb1f9c7f1c204630408

Looking through the themes installed on my machine, none have a cursor for openhand or alternatives, and half don't have a cursor for closedhand, dnd-copy, dnd-link, dnd-move, and whats_this or alternatives.
Comment 3 Martin Flöser 2016-11-02 12:05:06 UTC
KWin nowadays has a cursor fallback handling and fleur is set as fallback for size_all.