window: Kill off the rest of colormaps

I removed the XInstallColormap / XUninstallColormap but forgot
to remove the fields in MetaWindow and the code to set them.
This commit is contained in:
Jasper St. Pierre 2014-03-20 16:26:14 -04:00
parent 054c307353
commit 337db2a660
5 changed files with 2 additions and 7 deletions

View File

@ -1620,8 +1620,6 @@ handle_other_xevent (MetaDisplay *display,
case SelectionNotify:
break;
case ColormapNotify:
if (window && !frame_was_receiver)
window->colormap = event->xcolormap.colormap;
break;
case ClientMessage:
if (window)

View File

@ -35,8 +35,7 @@
ButtonPressMask | ButtonReleaseMask | \
PointerMotionMask | PointerMotionHintMask | \
EnterWindowMask | LeaveWindowMask | \
FocusChangeMask | \
ColormapChangeMask)
FocusChangeMask)
void
meta_window_ensure_frame (MetaWindow *window)

View File

@ -103,7 +103,6 @@ struct _MetaWindow
MetaFrame *frame;
int depth;
Visual *xvisual;
Colormap colormap;
char *desc; /* used in debug spew */
char *title;

View File

@ -833,7 +833,6 @@ _meta_window_shared_new (MetaDisplay *display,
window->depth = attrs->depth;
window->xvisual = attrs->visual;
window->colormap = attrs->colormap;
window->title = NULL;
window->icon = NULL;

View File

@ -2322,7 +2322,7 @@ meta_window_x11_new (MetaDisplay *display,
meta_error_trap_push_with_return (display);
event_mask = PropertyChangeMask | ColormapChangeMask;
event_mask = PropertyChangeMask;
if (attrs.override_redirect)
event_mask |= StructureNotifyMask;