14456fccdSmrg/* 24456fccdSmrg * 34456fccdSmrg * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. 44456fccdSmrg * 54456fccdSmrg * Permission to use, copy, modify, distribute, and sell this software and its 64456fccdSmrg * documentation for any purpose is hereby granted without fee, provided that 74456fccdSmrg * the above copyright notice appear in all copies and that both that 84456fccdSmrg * copyright notice and this permission notice appear in supporting 94456fccdSmrg * documentation, and that the name of Keith Packard not be used in 104456fccdSmrg * advertising or publicity pertaining to distribution of the software without 114456fccdSmrg * specific, written prior permission. Keith Packard makes no 124456fccdSmrg * representations about the suitability of this software for any purpose. It 134456fccdSmrg * is provided "as is" without express or implied warranty. 144456fccdSmrg * 154456fccdSmrg * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 164456fccdSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 174456fccdSmrg * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 184456fccdSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 194456fccdSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 204456fccdSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 214456fccdSmrg * PERFORMANCE OF THIS SOFTWARE. 224456fccdSmrg */ 234456fccdSmrg 244456fccdSmrg#ifdef HAVE_CONFIG_H 254456fccdSmrg#include <config.h> 264456fccdSmrg#endif 274456fccdSmrg#include "Xfixesint.h" 284456fccdSmrg 294456fccdSmrgvoid 304456fccdSmrgXFixesSelectSelectionInput (Display *dpy, 314456fccdSmrg Window win, 323e6c936aSmrg Atom selection, 334456fccdSmrg unsigned long eventMask) 344456fccdSmrg{ 354456fccdSmrg XFixesExtDisplayInfo *info = XFixesFindDisplay (dpy); 364456fccdSmrg xXFixesSelectSelectionInputReq *req; 374456fccdSmrg 384456fccdSmrg XFixesSimpleCheckExtension (dpy, info); 394456fccdSmrg 404456fccdSmrg LockDisplay (dpy); 414456fccdSmrg GetReq (XFixesSelectSelectionInput, req); 42a7e741d5Smrg req->reqType = (CARD8) info->codes->major_opcode; 434456fccdSmrg req->xfixesReqType = X_XFixesSelectSelectionInput; 44a7e741d5Smrg req->window = (CARD32) win; 45a7e741d5Smrg req->selection = (CARD32) selection; 46a7e741d5Smrg req->eventMask = (CARD32) eventMask; 474456fccdSmrg UnlockDisplay (dpy); 484456fccdSmrg SyncHandle (); 494456fccdSmrg} 50