14642e01fSmrg/* 24642e01fSmrg * Copyright © 2008 Red Hat, Inc. 34642e01fSmrg * 44642e01fSmrg * Permission is hereby granted, free of charge, to any person obtaining a 54642e01fSmrg * copy of this software and associated documentation files (the "Software"), 64642e01fSmrg * to deal in the Software without restriction, including without limitation 74642e01fSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 84642e01fSmrg * and/or sell copies of the Software, and to permit persons to whom the 94642e01fSmrg * Software is furnished to do so, subject to the following conditions: 104642e01fSmrg * 114642e01fSmrg * The above copyright notice and this permission notice (including the next 124642e01fSmrg * paragraph) shall be included in all copies or substantial portions of the 134642e01fSmrg * Software. 144642e01fSmrg * 154642e01fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 164642e01fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 174642e01fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 184642e01fSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 194642e01fSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 204642e01fSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 214642e01fSmrg * DEALINGS IN THE SOFTWARE. 224642e01fSmrg * 234642e01fSmrg * Authors: Peter Hutterer 244642e01fSmrg * 254642e01fSmrg */ 264642e01fSmrg 274642e01fSmrg#ifdef HAVE_DIX_CONFIG_H 284642e01fSmrg#include <dix-config.h> 294642e01fSmrg#endif 304642e01fSmrg 314642e01fSmrg#ifndef ENTERLEAVE_H 324642e01fSmrg#define ENTERLEAVE_H 334642e01fSmrg 3435c4bbdfSmrg#include <dix.h> /* DoFocusEvents() */ 354642e01fSmrg 3635c4bbdfSmrgextern void DoEnterLeaveEvents(DeviceIntPtr pDev, 3735c4bbdfSmrg int sourceid, 3835c4bbdfSmrg WindowPtr fromWin, WindowPtr toWin, int mode); 394642e01fSmrg 4035c4bbdfSmrgextern void EnterLeaveEvent(DeviceIntPtr mouse, 4135c4bbdfSmrg int type, 4235c4bbdfSmrg int mode, int detail, WindowPtr pWin, Window child); 434642e01fSmrg 444642e01fSmrgextern void CoreEnterLeaveEvent(DeviceIntPtr mouse, 454642e01fSmrg int type, 464642e01fSmrg int mode, 4735c4bbdfSmrg int detail, WindowPtr pWin, Window child); 484642e01fSmrgextern void DeviceEnterLeaveEvent(DeviceIntPtr mouse, 496747b715Smrg int sourceid, 504642e01fSmrg int type, 514642e01fSmrg int mode, 5235c4bbdfSmrg int detail, WindowPtr pWin, Window child); 5335c4bbdfSmrgextern void DeviceFocusEvent(DeviceIntPtr dev, 5435c4bbdfSmrg int type, 5535c4bbdfSmrg int mode, 5635c4bbdfSmrg int detail , 5735c4bbdfSmrg WindowPtr pWin); 584642e01fSmrg 5935c4bbdfSmrgextern void EnterWindow(DeviceIntPtr dev, WindowPtr win, int mode); 604642e01fSmrg 614642e01fSmrgextern void CoreFocusEvent(DeviceIntPtr kbd, 6235c4bbdfSmrg int type, int mode, int detail, WindowPtr pWin); 634642e01fSmrg 6435c4bbdfSmrgextern void SetFocusIn(DeviceIntPtr kbd, WindowPtr win); 654642e01fSmrg 666747b715Smrgextern void SetFocusOut(DeviceIntPtr dev); 6735c4bbdfSmrg#endif /* _ENTERLEAVE_H_ */ 68