a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/*
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Copyright © 2008 Red Hat, Inc.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync *
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * copy of this software and associated documentation files (the "Software"),
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * to deal in the Software without restriction, including without limitation
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * and/or sell copies of the Software, and to permit persons to whom the
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Software is furnished to do so, subject to the following conditions:
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync *
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * The above copyright notice and this permission notice (including the next
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * paragraph) shall be included in all copies or substantial portions of the
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Software.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync *
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * DEALINGS IN THE SOFTWARE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync *
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Authors: Peter Hutterer
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync *
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#ifdef HAVE_DIX_CONFIG_H
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#include <dix-config.h>
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#ifndef ENTERLEAVE_H
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define ENTERLEAVE_H
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#include <dix.h> /* DoFocusEvents() */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void DoEnterLeaveEvents(DeviceIntPtr pDev,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int sourceid,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync WindowPtr fromWin, WindowPtr toWin, int mode);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void EnterLeaveEvent(DeviceIntPtr mouse,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int type,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int mode, int detail, WindowPtr pWin, Window child);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern WindowPtr CommonAncestor(WindowPtr a, WindowPtr b);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void CoreEnterLeaveEvent(DeviceIntPtr mouse,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int type,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int mode,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int detail, WindowPtr pWin, Window child);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void DeviceEnterLeaveEvent(DeviceIntPtr mouse,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int sourceid,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int type,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int mode,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int detail, WindowPtr pWin, Window child);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void DeviceFocusEvent(DeviceIntPtr dev,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int type,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int mode,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int detail ,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync WindowPtr pWin);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void EnterWindow(DeviceIntPtr dev, WindowPtr win, int mode);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void LeaveWindow(DeviceIntPtr dev);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void CoreFocusEvent(DeviceIntPtr kbd,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync int type, int mode, int detail, WindowPtr pWin);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void SetFocusIn(DeviceIntPtr kbd, WindowPtr win);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern void SetFocusOut(DeviceIntPtr dev);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif /* _ENTERLEAVE_H_ */