Initialize more attributes in gdk_window_ensure_native

The attributes struct has some members that aren't covered by the
attributes_mask so they should always be filled in. The Win32 backend
was using the window type member when creating the window
implementation. Previously this was left uninitialized so it would end
up thinking the window is input_only and nothing would get painted.

https://bugzilla.gnome.org/show_bug.cgi?id=628049

Signed-off-by: Hans Breuer <hans@breuer.org>
This commit is contained in:
Neil Roberts 2010-08-26 16:55:04 +01:00 committed by Hans Breuer
parent 5077d9cce8
commit c3c5575fc1

View File

@ -1863,6 +1863,13 @@ gdk_window_ensure_native (GdkWindow *window)
screen = gdk_drawable_get_screen (window);
visual = gdk_drawable_get_visual (window);
/* These fields are required in the attributes struct so we can't
ignore them by clearing a flag in the attributes mask */
attributes.wclass = private->input_only ? GDK_INPUT_ONLY : GDK_INPUT_OUTPUT;
attributes.width = private->width;
attributes.height = private->height;
attributes.window_type = private->window_type;
attributes.colormap = gdk_drawable_get_colormap (window);
old_impl = private->impl;