summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2001-07-06 19:41:00 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-07-06 19:41:00 +0000
commit515852ba91af6bd193ac15a2ff0879ddff473b8e (patch)
treed81cc41f5efd4270c5770565b3176a17c55d8a00 /gdk
parent01a12a6096e27b9e415cb1041ce86e491fc67e70 (diff)
downloadgdk-pixbuf-515852ba91af6bd193ac15a2ff0879ddff473b8e.tar.gz
Jul 6 15:38:33 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c (gtk_widget_class_init): G_SIGNAL_TYPE_STATIC_SCOPE GtkSelectionData to restore some workingness. * gdk/x11/gdkwindow-x11.c (gdk_window_new): Fix handle of window type for input-only windows.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkwindow-x11.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 450644e9a..c94f7a463 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -366,7 +366,21 @@ gdk_window_new (GdkWindow *parent,
private->y = y;
impl->width = (attributes->width > 1) ? (attributes->width) : (1);
impl->height = (attributes->height > 1) ? (attributes->height) : (1);
- private->window_type = attributes->window_type;
+
+ if (attributes->wclass == GDK_INPUT_ONLY)
+ {
+ /* Backwards compatiblity - we've always ignored
+ * attributes->window_type for input-only windows
+ * before
+ */
+ if (GDK_WINDOW_TYPE (parent) == GDK_WINDOW_ROOT &&
+ GDK_WINDOW_TYPE (parent) == GDK_WINDOW_FOREIGN)
+ private->window_type = GDK_WINDOW_TEMP;
+ else
+ private->window_type = GDK_WINDOW_CHILD;
+ }
+ else
+ private->window_type = attributes->window_type;
_gdk_window_init_position (GDK_WINDOW (private));
if (impl->position_info.big)