when colormap changes and it is installed, reinstall the new one
also add a debug print
This commit is contained in:
parent
a59540f25a
commit
65bf23c27d
1 changed files with 10 additions and 1 deletions
|
@ -1534,6 +1534,15 @@ void client_get_colormap(ObClient *self)
|
|||
|
||||
void client_update_colormap(ObClient *self, Colormap colormap)
|
||||
{
|
||||
if (colormap == self->colormap) return;
|
||||
|
||||
ob_debug("Setting client %s colormap: 0x%x\n", self->title, colormap);
|
||||
|
||||
if (client_focused(self)) {
|
||||
screen_install_colormap(self, FALSE); /* uninstall old one */
|
||||
self->colormap = colormap;
|
||||
screen_install_colormap(self, FALSE); /* install new one */
|
||||
} else
|
||||
self->colormap = colormap;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue