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
293e6c936aSmrgvoid
304456fccdSmrgXFixesChangeSaveSet (Display *dpy, Window win, int mode, int target, int map)
314456fccdSmrg{
324456fccdSmrg    XFixesExtDisplayInfo	*info = XFixesFindDisplay (dpy);
334456fccdSmrg    xXFixesChangeSaveSetReq	*req;
344456fccdSmrg
354456fccdSmrg    XFixesSimpleCheckExtension (dpy, info);
364456fccdSmrg
374456fccdSmrg    LockDisplay (dpy);
384456fccdSmrg    GetReq (XFixesChangeSaveSet, req);
39a7e741d5Smrg    req->reqType = (CARD8) info->codes->major_opcode;
404456fccdSmrg    req->xfixesReqType = X_XFixesChangeSaveSet;
41a7e741d5Smrg    req->mode = (BYTE) mode;
42a7e741d5Smrg    req->target = (BYTE) target;
43a7e741d5Smrg    req->map = (BYTE) map;
44a7e741d5Smrg    req->window = (CARD32) win;
454456fccdSmrg    UnlockDisplay (dpy);
464456fccdSmrg    SyncHandle ();
474456fccdSmrg}
48