[PATCH 2/4] Xi: add XI_Focus{In,Out} to swapped events.

Matthieu Herrb matthieu.herrb at laas.fr
Fri Apr 1 14:05:41 PDT 2011


Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 Xi/extinit.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/Xi/extinit.c b/Xi/extinit.c
index 289558f..0b7280d 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -864,6 +864,8 @@ XI2EventSwap(xGenericEvent *from, xGenericEvent *to)
     {
         case XI_Enter:
         case XI_Leave:
+        case XI_FocusIn:
+        case XI_FocusOut:
             SDeviceLeaveNotifyEvent((xXILeaveEvent*)from, (xXILeaveEvent*)to);
             break;
         case XI_DeviceChanged:
-- 
1.7.3.5



More information about the xorg-devel mailing list