summaryrefslogtreecommitdiff
path: root/mi/mieq.c
diff options
context:
space:
mode:
Diffstat (limited to 'mi/mieq.c')
-rw-r--r--mi/mieq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mi/mieq.c b/mi/mieq.c
index f9ceab2fa..562580200 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -393,17 +393,17 @@ mieqProcessDeviceEvent(DeviceIntPtr dev,
else {
master = CopyGetMasterEvent(dev, event, masterEvents);
+ if (master)
+ master->u.lastSlave = dev;
+
/* If someone's registered a custom event handler, let them
* steal it. */
if (handler)
{
handler(DequeueScreen(dev)->myNum, event, dev);
if (master)
- {
- master->u.lastSlave = dev;
handler(DequeueScreen(master)->myNum,
(InternalEvent*)masterEvents->event, master);
- }
} else
{
/* process slave first, then master */