diff options
author | Owen Taylor <otaylor@redhat.com> | 1999-02-21 20:55:04 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1999-02-21 20:55:04 +0000 |
commit | 25cdbd356057a4e8d3a654487a739a279fa96068 (patch) | |
tree | f55f54f575c9e3502639460a09e69ae84c8dd643 /gdk/x11/MwmUtil.h | |
parent | 295e763b4da13726b7beb8e9c905a5af30b0e251 (diff) | |
download | gtk+-25cdbd356057a4e8d3a654487a739a279fa96068.tar.gz |
Account for the fact that Xlib expects format == 32 to be a long, even on
Sun Feb 21 15:59:55 1999 Owen Taylor <otaylor@redhat.com>
* gdk/MwmUtil.h gdk/gdkwindow.c: Account for the
fact that Xlib expects format == 32 to be a long,
even on 64-bit architectures.
[ patch from George Lebl (jirka@5z.com) ]
Diffstat (limited to 'gdk/x11/MwmUtil.h')
-rw-r--r-- | gdk/x11/MwmUtil.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/gdk/x11/MwmUtil.h b/gdk/x11/MwmUtil.h index 9f4e3a29b2..53925f685a 100644 --- a/gdk/x11/MwmUtil.h +++ b/gdk/x11/MwmUtil.h @@ -21,6 +21,14 @@ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA. * + * + * * Feb 21 1999 - George Lebl (jirka@5z.com) + * Owen Taylor (otaylor@redhat.com) + * + * Modified so that the MotifWmHints structure defined here + * is suitable for client side use on 64-bit architectures. + * X expects fields with a format of 32 to be longs, even + * when sizeof(long) == 8. **/ #ifndef MWMUTIL_H_INCLUDED @@ -33,11 +41,11 @@ extern "C" { #endif typedef struct { - CARD32 flags; - CARD32 functions; - CARD32 decorations; - INT32 input_mode; - CARD32 status; + unsigned long flags; + unsigned long functions; + unsigned long decorations; + long input_mode; + unsigned long status; } MotifWmHints, MwmHints; #define MWM_HINTS_FUNCTIONS (1L << 0) @@ -100,11 +108,11 @@ typedef MotifWmInfo MwmInfo; * _MWM_HINTS property */ typedef struct { - CARD32 flags; - CARD32 functions; - CARD32 decorations; - INT32 inputMode; - CARD32 status; + unsigned long flags; + unsigned long functions; + unsigned long decorations; + long inputMode; + unsigned long status; } PropMotifWmHints; typedef PropMotifWmHints PropMwmHints; @@ -116,8 +124,8 @@ typedef PropMotifWmHints PropMwmHints; * _MWM_INFO property, slight return */ typedef struct { - CARD32 flags; - CARD32 wmWindow; + unsigned long flags; + unsigned long wmWindow; } PropMotifWmInfo; typedef PropMotifWmInfo PropMwmInfo; |