]> git.sur5r.net Git - i3/i3/commit - src/x.c
Fix colormap handling for containers. (#2450)
authorIngo Bürk <admin@airblader.de>
Wed, 14 Sep 2016 07:13:17 +0000 (09:13 +0200)
committerMichael Stapelberg <stapelberg@users.noreply.github.com>
Wed, 14 Sep 2016 07:13:17 +0000 (09:13 +0200)
commitd48c9b1e337a3eb663c6f0f8af28c3b52f405ab4
treebb2cdc21c5cbff42aa49f13acfd76deab388c0a0
parent555f458d7ad4d1e558747669fd2d2036ffead1ee
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
include/data.h
src/x.c