SaveSet.c revision 4456fccd
14456fccdSmrg/* 24456fccdSmrg * $XFree86: xc/lib/Xfixes/SaveSet.c,v 1.1 2002/11/30 18:41:33 keithp Exp $ 34456fccdSmrg * 44456fccdSmrg * Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc. 54456fccdSmrg * 64456fccdSmrg * Permission to use, copy, modify, distribute, and sell this software and its 74456fccdSmrg * documentation for any purpose is hereby granted without fee, provided that 84456fccdSmrg * the above copyright notice appear in all copies and that both that 94456fccdSmrg * copyright notice and this permission notice appear in supporting 104456fccdSmrg * documentation, and that the name of Keith Packard not be used in 114456fccdSmrg * advertising or publicity pertaining to distribution of the software without 124456fccdSmrg * specific, written prior permission. Keith Packard makes no 134456fccdSmrg * representations about the suitability of this software for any purpose. It 144456fccdSmrg * is provided "as is" without express or implied warranty. 154456fccdSmrg * 164456fccdSmrg * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 174456fccdSmrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 184456fccdSmrg * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 194456fccdSmrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 204456fccdSmrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 214456fccdSmrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 224456fccdSmrg * PERFORMANCE OF THIS SOFTWARE. 234456fccdSmrg */ 244456fccdSmrg 254456fccdSmrg#ifdef HAVE_CONFIG_H 264456fccdSmrg#include <config.h> 274456fccdSmrg#endif 284456fccdSmrg#include "Xfixesint.h" 294456fccdSmrg 304456fccdSmrgvoid 314456fccdSmrgXFixesChangeSaveSet (Display *dpy, Window win, int mode, int target, int map) 324456fccdSmrg{ 334456fccdSmrg XFixesExtDisplayInfo *info = XFixesFindDisplay (dpy); 344456fccdSmrg xXFixesChangeSaveSetReq *req; 354456fccdSmrg 364456fccdSmrg XFixesSimpleCheckExtension (dpy, info); 374456fccdSmrg 384456fccdSmrg LockDisplay (dpy); 394456fccdSmrg GetReq (XFixesChangeSaveSet, req); 404456fccdSmrg req->reqType = info->codes->major_opcode; 414456fccdSmrg req->xfixesReqType = X_XFixesChangeSaveSet; 424456fccdSmrg req->mode = mode; 434456fccdSmrg req->target = target; 444456fccdSmrg req->map = map; 454456fccdSmrg req->window = win; 464456fccdSmrg UnlockDisplay (dpy); 474456fccdSmrg SyncHandle (); 484456fccdSmrg} 49