2006-11-26 11:13:41 -07:00
|
|
|
/*
|
2011-11-05 07:32:40 -06:00
|
|
|
* Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
|
|
|
* Copyright 2010 Red Hat, Inc.
|
2006-11-26 11:13:41 -07:00
|
|
|
*
|
2010-07-27 13:02:24 -06:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
* copy of this software and associated documentation files (the "Software"),
|
|
|
|
* to deal in the Software without restriction, including without limitation
|
|
|
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
|
|
* and/or sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following conditions:
|
2006-11-26 11:13:41 -07:00
|
|
|
*
|
2010-07-27 13:02:24 -06:00
|
|
|
* The above copyright notice and this permission notice (including the next
|
|
|
|
* paragraph) shall be included in all copies or substantial portions of the
|
|
|
|
* Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
|
|
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
|
|
* DEALINGS IN THE SOFTWARE.
|
2006-11-26 11:13:41 -07:00
|
|
|
*
|
|
|
|
* Copyright © 2002 Keith Packard
|
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, distribute, and sell this software and its
|
|
|
|
* documentation for any purpose is hereby granted without fee, provided that
|
|
|
|
* the above copyright notice appear in all copies and that both that
|
|
|
|
* copyright notice and this permission notice appear in supporting
|
|
|
|
* documentation, and that the name of Keith Packard not be used in
|
|
|
|
* advertising or publicity pertaining to distribution of the software without
|
|
|
|
* specific, written prior permission. Keith Packard makes no
|
|
|
|
* representations about the suitability of this software for any purpose. It
|
|
|
|
* is provided "as is" without express or implied warranty.
|
|
|
|
*
|
|
|
|
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
|
|
|
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
|
|
|
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
|
|
|
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
|
|
|
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
|
|
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifdef HAVE_DIX_CONFIG_H
|
|
|
|
#include <dix-config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _XFIXESINT_H_
|
|
|
|
#define _XFIXESINT_H_
|
|
|
|
|
|
|
|
#include <X11/X.h>
|
|
|
|
#include <X11/Xproto.h>
|
|
|
|
#include "misc.h"
|
|
|
|
#include "os.h"
|
|
|
|
#include "dixstruct.h"
|
|
|
|
#include "extnsionst.h"
|
|
|
|
#include <X11/extensions/xfixesproto.h>
|
|
|
|
#include "windowstr.h"
|
|
|
|
#include "selection.h"
|
|
|
|
#include "xfixes.h"
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern int XFixesEventBase;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
typedef struct _XFixesClient {
|
2012-06-10 07:21:05 -06:00
|
|
|
CARD32 major_version;
|
|
|
|
CARD32 minor_version;
|
2006-11-26 11:13:41 -07:00
|
|
|
} XFixesClientRec, *XFixesClientPtr;
|
|
|
|
|
2008-11-02 08:26:08 -07:00
|
|
|
#define GetXFixesClient(pClient) ((XFixesClientPtr)dixLookupPrivate(&(pClient)->devPrivates, XFixesClientPrivateKey))
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
extern int (*ProcXFixesVector[XFixesNumberRequests]) (ClientPtr);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Save set */
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesChangeSaveSet(ClientPtr client);
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesChangeSaveSet(ClientPtr client);
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
/* Selection events */
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesSelectSelectionInput(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesSelectSelectionInput(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
void
|
2012-06-10 07:21:05 -06:00
|
|
|
|
|
|
|
SXFixesSelectionNotifyEvent(xXFixesSelectionNotifyEvent * from,
|
|
|
|
xXFixesSelectionNotifyEvent * to);
|
2006-11-26 11:13:41 -07:00
|
|
|
Bool
|
2012-06-10 07:21:05 -06:00
|
|
|
XFixesSelectionInit(void);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Cursor notification */
|
|
|
|
Bool
|
2012-06-10 07:21:05 -06:00
|
|
|
XFixesCursorInit(void);
|
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesSelectCursorInput(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesSelectCursorInput(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
void
|
2012-06-10 07:21:05 -06:00
|
|
|
|
|
|
|
SXFixesCursorNotifyEvent(xXFixesCursorNotifyEvent * from,
|
|
|
|
xXFixesCursorNotifyEvent * to);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesGetCursorImage(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesGetCursorImage(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Cursor names (Version 2) */
|
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesSetCursorName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesSetCursorName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesGetCursorName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesGetCursorName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesGetCursorImageAndName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesGetCursorImageAndName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Cursor replacement (Version 2) */
|
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesChangeCursor(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesChangeCursor(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesChangeCursorByName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesChangeCursorByName(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Region objects (Version 2* */
|
|
|
|
Bool
|
2012-06-10 07:21:05 -06:00
|
|
|
XFixesRegionInit(void);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCreateRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCreateRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCreateRegionFromBitmap(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCreateRegionFromBitmap(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCreateRegionFromWindow(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCreateRegionFromWindow(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCreateRegionFromGC(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCreateRegionFromGC(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCreateRegionFromPicture(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCreateRegionFromPicture(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesDestroyRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesDestroyRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesSetRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesSetRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCopyRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCopyRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCombineRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCombineRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesInvertRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesInvertRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesTranslateRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesTranslateRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesRegionExtents(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesRegionExtents(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesFetchRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesFetchRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesSetGCClipRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesSetGCClipRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesSetWindowShapeRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesSetWindowShapeRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesSetPictureClipRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesSetPictureClipRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesExpandRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesExpandRegion(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
PanoramiXFixesSetGCClipRegion(ClientPtr client);
|
2011-11-05 07:32:40 -06:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
PanoramiXFixesSetWindowShapeRegion(ClientPtr client);
|
2011-11-05 07:32:40 -06:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
PanoramiXFixesSetPictureClipRegion(ClientPtr client);
|
2011-11-05 07:32:40 -06:00
|
|
|
|
2006-11-26 11:13:41 -07:00
|
|
|
/* Cursor Visibility (Version 4) */
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
int
|
|
|
|
ProcXFixesHideCursor(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
int
|
|
|
|
SProcXFixesHideCursor(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
int
|
|
|
|
ProcXFixesShowCursor(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
int
|
|
|
|
SProcXFixesShowCursor(ClientPtr client);
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2011-11-05 07:32:40 -06:00
|
|
|
/* Version 5 */
|
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesCreatePointerBarrier(ClientPtr client);
|
2011-11-05 07:32:40 -06:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesCreatePointerBarrier(ClientPtr client);
|
2011-11-05 07:32:40 -06:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
ProcXFixesDestroyPointerBarrier(ClientPtr client);
|
2011-11-05 07:32:40 -06:00
|
|
|
|
|
|
|
int
|
2012-06-10 07:21:05 -06:00
|
|
|
SProcXFixesDestroyPointerBarrier(ClientPtr client);
|
2011-11-05 07:32:40 -06:00
|
|
|
|
|
|
|
/* Xinerama */
|
2013-06-07 11:28:45 -06:00
|
|
|
#ifdef PANORAMIX
|
2012-06-10 07:21:05 -06:00
|
|
|
extern int (*PanoramiXSaveXFixesVector[XFixesNumberRequests]) (ClientPtr);
|
|
|
|
void PanoramiXFixesInit(void);
|
|
|
|
void PanoramiXFixesReset(void);
|
2013-06-07 11:28:45 -06:00
|
|
|
#endif
|
2011-11-05 07:32:40 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#endif /* _XFIXESINT_H_ */
|