UpdMapHint.c File Reference

#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)


Function Documentation

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 }


Generated on Sun Mar 4 16:04:26 2007 for Scilab [trunk] by  doxygen 1.5.1