#include <stdio.h>#include <X11/Xlib.h>#include <X11/Xutil.h>#include <X11/Xmu/WinUtil.h>Include dependency graph for UpdMapHint.c:

Go to the source code of this file.
Functions | |
| Bool | XmuUpdateMapHints (Display *dpy, Window w, XSizeHints *hints) |
| Bool XmuUpdateMapHints | ( | Display * | dpy, | |
| Window | w, | |||
| XSizeHints * | hints | |||
| ) |
Definition at line 40 of file UpdMapHint.c.
References NULL.
00041 { 00042 static XSizeHints *shp = NULL; 00043 00044 if (!hints) { /* get them first */ 00045 long supp; 00046 00047 if (!shp) { 00048 shp = XAllocSizeHints(); 00049 if (!shp) return False; 00050 } 00051 if (!XGetWMNormalHints (dpy, w, shp, &supp)) return False; 00052 hints = shp; 00053 } 00054 hints->flags &= ~(PPosition|PSize); 00055 hints->flags |= (USPosition|USSize); 00056 XSetWMNormalHints (dpy, w, hints); 00057 return True; 00058 }
1.5.1