From ffe246e292659b928c810dba8e2259a6719f8cdc Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Fri, 23 Oct 2015 11:30:29 +0300 Subject: [PATCH] Fixed color distortion --- src/libkomwm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libkomwm.py b/src/libkomwm.py index 3e26266..77ee579 100644 --- a/src/libkomwm.py +++ b/src/libkomwm.py @@ -25,8 +25,7 @@ def mwm_encode_color(colors, st, prefix='', default='black'): if prefix: prefix += "-" opacity = hex(255 - int(255 * float(st.get(prefix + "opacity", 1)))) - color = whatever_to_hex(st.get(prefix + 'color', default)) - color = color[1] + color[1] + color[3] + color[3] + color[5] + color[5] + color = whatever_to_hex(st.get(prefix + 'color', default))[1:] result = int(opacity + color, 16) colors.add(result) return result