|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
/*
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
Copyright 1994, 1998 The Open Group
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
Permission to use, copy, modify, distribute, and sell this software and its
|
|
Packit |
5bd3a9 |
documentation for any purpose is hereby granted without fee, provided that
|
|
Packit |
5bd3a9 |
the above copyright notice appear in all copies and that both that
|
|
Packit |
5bd3a9 |
copyright notice and this permission notice appear in supporting
|
|
Packit |
5bd3a9 |
documentation.
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
The above copyright notice and this permission notice shall be included
|
|
Packit |
5bd3a9 |
in all copies or substantial portions of the Software.
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
Packit |
5bd3a9 |
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
Packit |
5bd3a9 |
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
Packit |
5bd3a9 |
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
|
Packit |
5bd3a9 |
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
|
Packit |
5bd3a9 |
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
Packit |
5bd3a9 |
OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
Except as contained in this notice, the name of The Open Group shall
|
|
Packit |
5bd3a9 |
not be used in advertising or otherwise to promote the sale, use or
|
|
Packit |
5bd3a9 |
other dealings in this Software without prior written authorization
|
|
Packit |
5bd3a9 |
from The Open Group.
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
*/
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
#ifdef HAVE_CONFIG_H
|
|
Packit |
5bd3a9 |
#include <config.h>
|
|
Packit |
5bd3a9 |
#endif
|
|
Packit |
5bd3a9 |
#include "Xlibint.h"
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
int
|
|
Packit |
5bd3a9 |
XSetWindowBorderWidth(
|
|
Packit |
5bd3a9 |
Display *dpy,
|
|
Packit |
5bd3a9 |
Window w,
|
|
Packit |
5bd3a9 |
unsigned int width)
|
|
Packit |
5bd3a9 |
{
|
|
Packit |
5bd3a9 |
unsigned long lwidth = width; /* must be CARD32 */
|
|
Packit |
5bd3a9 |
|
|
Packit |
5bd3a9 |
register xConfigureWindowReq *req;
|
|
Packit |
5bd3a9 |
LockDisplay(dpy);
|
|
Packit |
5bd3a9 |
GetReqExtra(ConfigureWindow, 4, req);
|
|
Packit |
5bd3a9 |
req->window = w;
|
|
Packit |
5bd3a9 |
req->mask = CWBorderWidth;
|
|
Packit |
5bd3a9 |
OneDataCard32 (dpy, NEXTPTR(req,xConfigureWindowReq), lwidth);
|
|
Packit |
5bd3a9 |
UnlockDisplay(dpy);
|
|
Packit |
5bd3a9 |
SyncHandle();
|
|
Packit |
5bd3a9 |
return 1;
|
|
Packit |
5bd3a9 |
}
|
|
Packit |
5bd3a9 |
|