mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
mi: fix some macros to allow multiple cursors for master devices.
Macros defaulted to inputInfo.pointe rfor devices that weren't spriteOwners. Changed to take the device's master device now. This includes sticking in a number of checks and warnings that cursor rendering won't be called for floating devices.
This commit is contained in:
parent
1d9ebbac8c
commit
de70cfdbe6
3 changed files with 94 additions and 16 deletions
|
|
@ -85,7 +85,7 @@ typedef struct {
|
|||
#define MIDCBUFFER(dev) \
|
||||
((DevHasCursor(dev)) ? \
|
||||
(miDCBufferPtr)dev->devPrivates[miDCSpriteIndex].ptr :\
|
||||
(miDCBufferPtr)inputInfo.pointer->devPrivates[miDCSpriteIndex].ptr)
|
||||
(miDCBufferPtr)dev->u.master->devPrivates[miDCSpriteIndex].ptr)
|
||||
|
||||
/*
|
||||
* The core pointer buffer will point to the index of the virtual core pointer
|
||||
|
|
|
|||
Loading…
Reference in a new issue