mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
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:
parent
d9c4801d94
commit
8022523767
@ -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
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user