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
This commit is contained in:
Michael Natterer 2006-07-27 15:22:13 +00:00 committed by Michael Natterer
parent d9c4801d94
commit 8022523767
3 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,10 @@
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
2006-07-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (gtk_settings_finalize): Move the

View File

@ -1,3 +1,10 @@
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
2006-07-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (gtk_settings_finalize): Move the

View File

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