Fix colormap handling for containers. (#2450)
This commit correctly handles colormaps by * Using the static default colormap we determine on startup if the con has the corresponding depth. This avoids creating pointless colormaps. * Not freeing the default colormap to not have stray colormaps on containers. This fixes an issue with certain programs such as xwd. * Creating a custom colormap when necessary and freeing it when the container is killed. fixes #2435
This commit is contained in:
committed by
Michael Stapelberg
parent
555f458d7a
commit
d48c9b1e33
@ -699,4 +699,7 @@ struct Con {
|
||||
|
||||
/* Depth of the container window */
|
||||
uint16_t depth;
|
||||
|
||||
/* The colormap for this con if a custom one is used. */
|
||||
xcb_colormap_t colormap;
|
||||
};
|
||||
|
Reference in New Issue
Block a user