diff options
author | Manish Singh <yosh@gimp.org> | 2005-01-20 01:19:45 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2005-01-20 01:19:45 +0000 |
commit | 85c6f6eb76c83c7108e2dcc47d396fc32a14f2b8 (patch) | |
tree | 606a8650f0b333653340906bc8cfb8aa87dc4469 /gdk | |
parent | d2b62140cd442bb6eae7112fc21ce3aebec580f3 (diff) | |
download | gtk+-85c6f6eb76c83c7108e2dcc47d396fc32a14f2b8.tar.gz |
Squash strict aliasing warning in _NET_VIRTUAL_ROOTS code.
Wed Jan 19 17:17:31 2005 Manish Singh <yosh@gimp.org>
* gdk/x11/gdkwindow-x11.c (gdk_window_get_frame_extents): Squash
strict aliasing warning in _NET_VIRTUAL_ROOTS code.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index da250e5c17..040b32baaa 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -3134,6 +3134,7 @@ gdk_window_get_frame_extents (GdkWindow *window, Window xparent; Window root; Window *children; + guchar *data; Window *vroots; Atom type_return; unsigned int nchildren; @@ -3182,11 +3183,14 @@ gdk_window_get_frame_extents (GdkWindow *window, "_NET_VIRTUAL_ROOTS"), 0, 0x7fffffff, False, XA_WINDOW, &type_return, &format_return, &nitems_return, &bytes_after_return, - (unsigned char **)(&vroots)) + &data) == Success) { - if ((type_return == XA_WINDOW) && (format_return == 32) && (vroots)) - nvroots = nitems_return; + if ((type_return == XA_WINDOW) && (format_return == 32) && (data)) + { + nvroots = nitems_return; + vroots = (Window *)data; + } } xparent = GDK_WINDOW_XID (window); |