How to change mouse cursor to standard hand cursor

Sam Varshavchik mrsam at
Thu Jul 16 16:27:15 PDT 2015

Cosmin Apreutesei writes:

> Hi,
> I need to change the mouse pointer for a window to the standard hand
> cursor (I need a toolkit-independent solution, preferably XCB-based).
> I noticed that loading the "cursor" font and changing the window
> attribute XCB_CW_CURSOR to XC_hand2 loads an ugly and unfamiliar hand
> cursor, not the default Ubuntu hand cursor that you see in Chrome when
> you hover links.
> Any ideas?

There's really no such thing as a "default cursor".

The cursor on the root window is going to get set by whatever desktop you're  
using – Gnome, KDE, XFCE, or what not; and inherited by all top-level  

You may want to check the documentation for your desktop manager. It's  
possible that your desktop manager might define a standard set of cursors,  
as well-defined resources.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <>

More information about the xorg mailing list