Commit 85c6f6eb authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

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.
parent d2b62140
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,
......
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,
......
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,
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment