#include <X11/Xutil.h>#include <X11/Xfuncproto.h>Include dependency graph for WinUtil.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| _XFUNCPROTOBEGIN Window | XmuClientWindow (Display *dpy, Window win) |
| Bool | XmuUpdateMapHints (Display *dpy, Window win, XSizeHints *hints) |
| Screen * | XmuScreenOfWindow (Display *dpy, Window w) |
| _XFUNCPROTOBEGIN Window XmuClientWindow | ( | Display * | dpy, | |
| Window | win | |||
| ) |
Definition at line 43 of file ClientWin.c.
References data, NULL, TryChildren(), and type.
00044 { 00045 Atom WM_STATE; 00046 Atom type = None; 00047 int format; 00048 unsigned long nitems, after; 00049 unsigned char *data = NULL; 00050 Window inf; 00051 00052 WM_STATE = XInternAtom(dpy, "WM_STATE", True); 00053 if (!WM_STATE) 00054 return win; 00055 XGetWindowProperty(dpy, win, WM_STATE, 0, 0, False, AnyPropertyType, 00056 &type, &format, &nitems, &after, &data); 00057 if (data) 00058 XFree(data); 00059 if (type) 00060 return win; 00061 inf = TryChildren(dpy, win, WM_STATE); 00062 if (!inf) 00063 inf = win; 00064 return inf; 00065 }
Here is the call graph for this function:

| Screen* XmuScreenOfWindow | ( | Display * | dpy, | |
| Window | w | |||
| ) |
Definition at line 39 of file ScrOfWin.c.
References depth, height, i, NULL, root, width, x, and y.
00040 { 00041 register int i; 00042 Window root; 00043 int x, y; /* dummy variables */ 00044 unsigned int width, height, bw, depth; /* dummy variables */ 00045 00046 if (!XGetGeometry (dpy, w, &root, &x, &y, &width, &height, 00047 &bw, &depth)) { 00048 return NULL; 00049 } 00050 for (i = 0; i < ScreenCount (dpy); i++) { /* find root from list */ 00051 if (root == RootWindow (dpy, i)) { 00052 return ScreenOfDisplay (dpy, i); 00053 } 00054 } 00055 return NULL; 00056 }
| Bool XmuUpdateMapHints | ( | Display * | dpy, | |
| Window | win, | |||
| 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