Bug 6147 - Support setting XInput2 "device cursors"
Status: NEW
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: git-master
Hardware: PC Linux
: P3 enhancement
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2014-05-02 04:21 EDT by Jack Harper
Modified: 2014-10-27 20:33:40 EDT
1 user (show)

See Also:


Attachments
Patch to set device cursor. (1.53 KB, patch)
2014-05-02 04:21 EDT, Jack Harper

Description Jack Harper 2014-05-02 04:21:41 EDT
Created attachment 3442 [details]
Patch to set device cursor.

Some greeters are known to set a device cursor on the root window (eg lightdm-gtk-greeter & unity-greeter) which permanently overrides the standard cursor. Openbox only changes the standard cursor so when the root window has a device cursor it cannot be changed to a busy cursor or cursor theme.

This has been a problem for some time and greeters continue to set a device cursor.
https://bugs.launchpad.net/unity/+bug/862662

Unity had the same problem with unity-greeter.
https://bugs.launchpad.net/ubuntu/+source/unity-greeter/+bug/1024482

This was resolved in Compiz by setting a device cursor for all cursor changes.
https://bugs.launchpad.net/compiz/+bug/1179155

A patch was published for Openbox which does the same thing, replacing XDefineCursor (standard cursor) with XIDefineCursor (device cursor).
https://icculus.org/pipermail/openbox/2013-July/008059.html

I have included the patch for convenience, I have also tested it and not encountered any issues.
Comment 1 Mikachu 2014-05-02 07:13:06 EDT
This should probably have some more ifdefs, separate configure.ac check, and a runtime check to see if the extension is in fact available on the server we are connected to.