diff options
author | Havoc Pennington <hp@pobox.com> | 2000-12-30 15:44:41 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2000-12-30 15:44:41 +0000 |
commit | d5be411c7bcfe21e5bff4cd921c86a2fc8f86c35 (patch) | |
tree | fd95c6b8838846c8fe928d5bff250d43c2bee475 /gdk | |
parent | 3944c2dbfcff45b3f2053c9b103a9029f78511d8 (diff) | |
download | gtk+-d5be411c7bcfe21e5bff4cd921c86a2fc8f86c35.tar.gz |
Set the system colormap on input only windows, to avoid special cases all
2000-12-30 Havoc Pennington <hp@pobox.com>
* 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.
Diffstat (limited to 'gdk')
-rw-r--r-- | gdk/x11/gdkwindow-x11.c | 3 |
1 files changed, 2 insertions, 1 deletions
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), |