11ab64890Smrg
21ab64890Smrg/*
31ab64890Smrg
41ab64890SmrgCopyright 1994, 1998  The Open Group
51ab64890Smrg
61ab64890SmrgPermission to use, copy, modify, distribute, and sell this software and its
71ab64890Smrgdocumentation for any purpose is hereby granted without fee, provided that
81ab64890Smrgthe above copyright notice appear in all copies and that both that
91ab64890Smrgcopyright notice and this permission notice appear in supporting
101ab64890Smrgdocumentation.
111ab64890Smrg
121ab64890SmrgThe above copyright notice and this permission notice shall be included
131ab64890Smrgin all copies or substantial portions of the Software.
141ab64890Smrg
151ab64890SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
161ab64890SmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
171ab64890SmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
181ab64890SmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
191ab64890SmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
201ab64890SmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
211ab64890SmrgOTHER DEALINGS IN THE SOFTWARE.
221ab64890Smrg
231ab64890SmrgExcept as contained in this notice, the name of The Open Group shall
241ab64890Smrgnot be used in advertising or otherwise to promote the sale, use or
251ab64890Smrgother dealings in this Software without prior written authorization
261ab64890Smrgfrom The Open Group.
271ab64890Smrg
281ab64890Smrg*/
291ab64890Smrg
301ab64890Smrg#ifdef HAVE_CONFIG_H
311ab64890Smrg#include <config.h>
321ab64890Smrg#endif
331ab64890Smrg#include "Xlibint.h"
341ab64890Smrg
351ab64890Smrgint
361ab64890SmrgXSetWindowBorderWidth(
371ab64890Smrg    Display *dpy,
381ab64890Smrg    Window w,
391ab64890Smrg    unsigned int width)
401ab64890Smrg{
411ab64890Smrg    unsigned long lwidth = width;	/* must be CARD32 */
421ab64890Smrg
431ab64890Smrg    register xConfigureWindowReq *req;
441ab64890Smrg    LockDisplay(dpy);
451ab64890Smrg    GetReqExtra(ConfigureWindow, 4, req);
461ab64890Smrg    req->window = w;
471ab64890Smrg    req->mask = CWBorderWidth;
481ab64890Smrg    OneDataCard32 (dpy, NEXTPTR(req,xConfigureWindowReq), lwidth);
491ab64890Smrg    UnlockDisplay(dpy);
501ab64890Smrg    SyncHandle();
511ab64890Smrg    return 1;
521ab64890Smrg}
531ab64890Smrg
54