mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-08 23:12:27 +00:00
mi: use GetMaster() from MIPOINTER and MISPRITE.
Both may in some cases be called for a SD attached to a master keyboard. In this case, we need to get the right master device (i.e. the pointer). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
c9df51b070
commit
b25e29e801
2 changed files with 4 additions and 4 deletions
|
|
@ -143,9 +143,9 @@ typedef struct {
|
|||
#endif
|
||||
|
||||
#define MISPRITE(dev) \
|
||||
((DevHasCursor(dev)) ? \
|
||||
((!IsMaster(dev) && !dev->u.master) ? \
|
||||
(miCursorInfoPtr)dixLookupPrivate(&dev->devPrivates, miSpriteDevPrivatesKey) : \
|
||||
(miCursorInfoPtr)dixLookupPrivate(&dev->u.master->devPrivates, miSpriteDevPrivatesKey))
|
||||
(miCursorInfoPtr)dixLookupPrivate(&(GetMaster(dev, MASTER_POINTER))->devPrivates, miSpriteDevPrivatesKey))
|
||||
|
||||
static void
|
||||
miSpriteDisableDamage(ScreenPtr pScreen, miSpriteScreenPtr pScreenPriv)
|
||||
|
|
|
|||
Loading…
Reference in a new issue