mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
window: Remove support for colormaps
While the ICCCM mandates the use of this, it's not necessary under a composited environment from my understanding, and it's a flat out no-op under XWayland. Looking at the other rootless servers like Xwin/Xquartz, it seems that they contain code for colormap emulation, but they're actually never used -- a bug prevents the code from ever being called. Given that it's been this way since 2003, I'm going to hazard a guess that not many apps using colormaps. Kill them off.
This commit is contained in:
parent
852589897e
commit
054c307353
@ -5676,11 +5676,6 @@ meta_window_set_focused_internal (MetaWindow *window,
|
||||
if (window->frame)
|
||||
meta_frame_queue_draw (window->frame);
|
||||
|
||||
meta_error_trap_push (window->display);
|
||||
XInstallColormap (window->display->xdisplay,
|
||||
window->colormap);
|
||||
meta_error_trap_pop (window->display);
|
||||
|
||||
/* move into FOCUSED_WINDOW layer */
|
||||
meta_window_update_layer (window);
|
||||
|
||||
@ -5719,11 +5714,6 @@ meta_window_set_focused_internal (MetaWindow *window,
|
||||
if (!window->attached_focus_window)
|
||||
meta_window_appears_focused_changed (window);
|
||||
|
||||
meta_error_trap_push (window->display);
|
||||
XUninstallColormap (window->display->xdisplay,
|
||||
window->colormap);
|
||||
meta_error_trap_pop (window->display);
|
||||
|
||||
/* move out of FOCUSED_WINDOW layer */
|
||||
meta_window_update_layer (window);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user