Fully initialize the root window, fixes bug #501583.

2007-12-04  Richard Hult  <richard@imendio.com>

	* gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init):
	Fully initialize the root window, fixes bug #501583.

svn path=/trunk/; revision=19109
This commit is contained in:
Richard Hult 2007-12-04 19:08:11 +00:00 committed by Richard Hult
parent 2b3c7b70ef
commit 4a82f84a28
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-12-04 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c: (_gdk_windowing_window_init):
Fully initialize the root window, fixes bug #501583.
2007-12-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtknotebook.c: Modify the tab-label-destroy fix to not

View File

@ -834,6 +834,7 @@ _gdk_windowing_window_init (void)
{
GdkWindowObject *private;
GdkWindowImplQuartz *impl;
GdkDrawableImplQuartz *drawable_impl;
NSRect rect;
g_assert (_gdk_root == NULL);
@ -851,6 +852,12 @@ _gdk_windowing_window_init (void)
private->state = 0; /* We don't want GDK_WINDOW_STATE_WITHDRAWN here */
private->window_type = GDK_WINDOW_ROOT;
private->depth = 24;
drawable_impl = GDK_DRAWABLE_IMPL_QUARTZ (private->impl);
drawable_impl->wrapper = GDK_DRAWABLE (private);
drawable_impl->colormap = gdk_screen_get_system_colormap (_gdk_screen);
g_object_ref (drawable_impl->colormap);
}
void