mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
dix: 'namespace' HAS_OLD_SLAVE and HAS_NEW_SLAVE.
We need more flags for this in the near future, so let's namespace them now.
This commit is contained in:
@@ -201,10 +201,10 @@ CreateClassesChangedEvent(EventList* event,
|
||||
dce->time = ms;
|
||||
if (master->u.lastSlave)
|
||||
{
|
||||
dce->flags |= HAS_OLD_SLAVE;
|
||||
dce->flags |= DEVCHANGE_HAS_OLD_SLAVE;
|
||||
dce->old_slaveid = master->u.lastSlave->id;
|
||||
}
|
||||
dce->flags |= HAS_NEW_SLAVE;
|
||||
dce->flags |= DEVCHANGE_HAS_NEW_SLAVE;
|
||||
dce->new_slaveid = slave->id;
|
||||
|
||||
if (slave->button)
|
||||
|
||||
@@ -112,9 +112,9 @@ typedef struct
|
||||
} DeviceEvent;
|
||||
|
||||
|
||||
/* Flags used in DeviceChangedEvent to signal if new/old slave is present */
|
||||
#define HAS_OLD_SLAVE 0x1
|
||||
#define HAS_NEW_SLAVE 0x2
|
||||
/* Flags used in DeviceChangedEvent to signal if new/old slave is present. */
|
||||
#define DEVCHANGE_HAS_OLD_SLAVE 0x1
|
||||
#define DEVCHANGE_HAS_NEW_SLAVE 0x2
|
||||
|
||||
/**
|
||||
* Sent whenever a device's capabilities have changed.
|
||||
|
||||
Reference in New Issue
Block a user