~ubuntu-branches/ubuntu/lucid/libx11/lucid

« back to all changes in this revision

Viewing changes to src/WMProps.c

  • Committer: Bazaar Package Importer
  • Author(s): Timo Aaltonen
  • Date: 2009-01-17 16:34:54 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20090117163454-gaey3cd32xyavueo
Tags: 2:1.1.99.2-1build1
Fakesync with Debian, all previous Ubuntu changes are included
in the new upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
                        All Rights Reserved
36
36
 
37
 
Permission to use, copy, modify, and distribute this software and its 
38
 
documentation for any purpose and without fee is hereby granted, 
 
37
Permission to use, copy, modify, and distribute this software and its
 
38
documentation for any purpose and without fee is hereby granted,
39
39
provided that the above copyright notice appear in all copies and that
40
 
both that copyright notice and this permission notice appear in 
 
40
both that copyright notice and this permission notice appear in
41
41
supporting documentation, and that the name of Wyse not be
42
42
used in advertising or publicity pertaining to distribution of the
43
 
software without specific, written prior permission.  
 
43
software without specific, written prior permission.
44
44
 
45
45
WYSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
46
46
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
62
62
#include <X11/Xlocale.h>
63
63
 
64
64
 
65
 
/* 
 
65
/*
66
66
 * XSetWMProperties sets the following properties:
67
67
 *      WM_NAME           type: TEXT            format: varies?
68
68
 *      WM_ICON_NAME      type: TEXT            format: varies?
73
73
 *      WM_CLASS          type: STRING/STRING   format: 8
74
74
  *     WM_LOCALE_NAME    type: STRING          format: 8
75
75
 */
76
 
        
 
76
 
77
77
void XSetWMProperties (
78
78
     Display *dpy,
79
79
     Window w,                  /* window to decorate */
109
109
    textprop.format = 8;
110
110
    textprop.nitems = len;
111
111
    XSetWMClientMachine (dpy, w, &textprop);
112
 
        
 
112
 
113
113
    /* set hints about how geometry and window manager interaction */
114
114
    if (sizeHints) XSetWMNormalHints (dpy, w, sizeHints);
115
115
    if (wmHints) XSetWMHints (dpy, w, wmHints);
139
139
        }
140
140
        XSetClassHint (dpy, w, classHints);
141
141
    }
142
 
    
 
142
 
143
143
    locale = setlocale(LC_CTYPE, (char *)NULL);
144
144
    if (locale)
145
145
        XChangeProperty (dpy, w, XInternAtom(dpy, "WM_LOCALE_NAME", False),