2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these librararies and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
24 * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
30 /* $XConsortium: WmCEvent.h /main/4 1995/11/01 11:34:01 rswiston $ */
32 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
35 extern void CheckButtonPressBuiltin (XButtonEvent *buttonEvent,
36 Context context, Context subContext,
37 int partContext, ClientData *pCD);
38 extern void CheckButtonReleaseBuiltin (XButtonEvent *buttonEvent,
39 Context context, Context subContext,
41 extern Window GetParentWindow (Window window);
42 extern WmScreenData *GetScreenForWindow (Window win);
43 extern Boolean HandleCButtonPress (ClientData *pCD, XButtonEvent *buttonEvent);
44 extern void HandleCButtonRelease (ClientData *pCD, XButtonEvent *buttonEvent);
45 extern void HandleCColormapNotify (ClientData *pCD,
46 XColormapEvent *colorEvent);
47 extern void HandleCConfigureRequest (ClientData *pCD,
48 XConfigureRequestEvent *configureRequest);
49 extern void HandleCEnterNotify (ClientData *pCD,
50 XEnterWindowEvent *enterEvent);
51 extern void HandleCLeaveNotify (ClientData *pCD,
52 XLeaveWindowEvent *leaveEvent);
53 extern Boolean HandleCFocusIn (ClientData *pCD,
54 XFocusChangeEvent *focusChangeEvent);
55 extern Boolean HandleCFocusOut (ClientData *pCD,
56 XFocusChangeEvent *focusChangeEvent);
57 extern Boolean HandleCKeyPress (ClientData *pCD, XKeyEvent *keyEvent);
58 extern void HandleClientMessage (ClientData *pCD,
59 XClientMessageEvent *clientEvent);
60 extern void HandleCMotionNotify (ClientData *pCD, XMotionEvent *motionEvent);
61 extern void HandleCPropertyNotify (ClientData *pCD,
62 XPropertyEvent *propertyEvent);
64 extern void HandleCShapeNotify (ClientData *pCD, XShapeEvent *shapeEvent);
66 extern Boolean HandleEventsOnClientWindow (ClientData *pCD, XEvent *pEvent);
67 extern Boolean HandleEventsOnSpecialWindows (XEvent *pEvent);
70 extern void SetupCButtonBindings (Window window, ButtonSpec *buttonSpecs);
71 extern Boolean WmDispatchClientEvent (XEvent *event);
72 extern void HandleIconBoxButtonPress (ClientData *pCD,
73 XButtonEvent *buttonEvent,
75 extern void HandleIconButtonPress (ClientData *pCD, XButtonEvent *buttonEvent);
78 extern void ProcessButtonGrabOnClient (ClientData *pCD,
79 XButtonEvent *buttonEvent,
81 extern void DetermineActiveScreen (XEvent *pEvent);
82 extern Boolean WmDispatchClientEvent (XEvent *event);
84 #define SetActiveScreen(psd) (ACTIVE_PSD=(psd), wmGD.queryScreen=False)