From d5be411c7bcfe21e5bff4cd921c86a2fc8f86c35 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 30 Dec 2000 15:44:41 +0000 Subject: [PATCH] Set the system colormap on input only windows, to avoid special cases all 2000-12-30 Havoc Pennington * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system colormap on input only windows, to avoid special cases all over the code for these windows. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gdk/x11/gdkwindow-x11.c | 3 ++- 8 files changed, 44 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1c69a40315..4741c3d426 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-12-30 Havoc Pennington + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system + colormap on input only windows, to avoid special cases all over + the code for these windows. + 2000-12-22 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 1c69a40315..4741c3d426 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +2000-12-30 Havoc Pennington + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system + colormap on input only windows, to avoid special cases all over + the code for these windows. + 2000-12-22 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1c69a40315..4741c3d426 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2000-12-30 Havoc Pennington + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system + colormap on input only windows, to avoid special cases all over + the code for these windows. + 2000-12-22 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 1c69a40315..4741c3d426 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +2000-12-30 Havoc Pennington + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system + colormap on input only windows, to avoid special cases all over + the code for these windows. + 2000-12-22 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 1c69a40315..4741c3d426 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +2000-12-30 Havoc Pennington + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system + colormap on input only windows, to avoid special cases all over + the code for these windows. + 2000-12-22 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 1c69a40315..4741c3d426 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +2000-12-30 Havoc Pennington + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system + colormap on input only windows, to avoid special cases all over + the code for these windows. + 2000-12-22 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 1c69a40315..4741c3d426 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +2000-12-30 Havoc Pennington + + * gdk/x11/gdkwindow-x11.c (gdk_window_new): Set the system + colormap on input only windows, to avoid special cases all over + the code for these windows. + 2000-12-22 Alexander Larsson * gdk/linux-fb/gdkkeyboard-fb.c (xlate_io): diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c index f5e511bcea..17de521ef7 100644 --- a/gdk/x11/gdkwindow-x11.c +++ b/gdk/x11/gdkwindow-x11.c @@ -482,7 +482,8 @@ gdk_window_new (GdkWindow *parent, private->depth = 0; class = InputOnly; private->input_only = TRUE; - draw_impl->colormap = NULL; + draw_impl->colormap = gdk_colormap_get_system (); + gdk_colormap_ref (draw_impl->colormap); } draw_impl->xid = XCreateWindow (GDK_WINDOW_XDISPLAY (parent),