Commit 80225237 authored by Michael Natterer's avatar Michael Natterer Committed by Michael Natterer
Browse files

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
parent d9c4801d
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> 2006-07-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (gtk_settings_finalize): Move the * gtk/gtksettings.c (gtk_settings_finalize): Move the
......
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> 2006-07-27 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (gtk_settings_finalize): Move the * gtk/gtksettings.c (gtk_settings_finalize): Move the
......
...@@ -2322,7 +2322,7 @@ gdk_window_get_type_hint (GdkWindow *window) ...@@ -2322,7 +2322,7 @@ gdk_window_get_type_hint (GdkWindow *window)
if ((type_return == XA_ATOM) && (format_return == 32) && if ((type_return == XA_ATOM) && (format_return == 32) &&
(data) && (nitems_return == 1)) (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")) if (atom == gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_WINDOW_TYPE_DIALOG"))
type = GDK_WINDOW_TYPE_HINT_DIALOG; type = GDK_WINDOW_TYPE_HINT_DIALOG;
......
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