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