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.
This commit is contained in:
Manish Singh 2005-01-20 01:19:45 +00:00 committed by Manish Singh
parent d2b62140cd
commit 85c6f6eb76
4 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,8 @@
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.
2005-01-19 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkkeys-win32.c (update_keymap,

View File

@ -1,3 +1,8 @@
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.
2005-01-19 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkkeys-win32.c (update_keymap,

View File

@ -1,3 +1,8 @@
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.
2005-01-19 Tor Lillqvist <tml@novell.com>
* gdk/win32/gdkkeys-win32.c (update_keymap,

View File

@ -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);