[gtk+/gtk-2-22] Initialize more attributes in gdk_window_ensure_native
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-2-22] Initialize more attributes in gdk_window_ensure_native
- Date: Sun, 5 Sep 2010 14:02:28 +0000 (UTC)
commit c3c5575fc13b09551e3d83b00b71161ad8a1d6ee
Author: Neil Roberts <neil linux intel com>
Date: Thu Aug 26 16:55:04 2010 +0100
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>
gdk/gdkwindow.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 4f7029e..c3dd544 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]