diff options
author | Michael Natterer <mitch@imendio.com> | 2006-07-27 15:22:13 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2006-07-27 15:22:13 +0000 |
commit | 8022523767768598440bde06b0c1b719688c2e18 (patch) | |
tree | 4a307c305b1762d65d7ae1edbb73d99fc81402e0 /gdk | |
parent | d9c4801d94b8b8f76ade17de40309cd7fc5eda8e (diff) | |
download | gtk+-8022523767768598440bde06b0c1b719688c2e18.tar.gz |
cast the return value of XGetWindowProperty() correctly so we don't return
2006-07-27 Michael Natterer <mitch@imendio.com>
* gdk/x11/gdkwindow-x11.c (gdk_window_get_type_hint): cast the
return value of XGetWindowProperty() correctly so we don't return
garbage type hints. Pointed out by Tommi Komulainen, patch taken
from https://maemo.org/bugzilla/show_bug.cgi?id=724
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index 87324b7d2f..80f5ff3842 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -2322,7 +2322,7 @@ gdk_window_get_type_hint (GdkWindow *window) if ((type_return == XA_ATOM) && (format_return == 32) && (data) && (nitems_return == 1)) { - Atom atom = (Atom) *data; + Atom atom = *(Atom*)data; if (atom == gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_WINDOW_TYPE_DIALOG")) type = GDK_WINDOW_TYPE_HINT_DIALOG; |