From fb4582596faba41e3cad54dfb83732e680c8f603 Mon Sep 17 00:00:00 2001 From: Constantin Shalnev Date: Fri, 13 Nov 2015 15:53:06 +0300 Subject: [PATCH] Do not use 0 value because it is default --- src/libkomwm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkomwm.py b/src/libkomwm.py index ed90b96..93c3a9d 100644 --- a/src/libkomwm.py +++ b/src/libkomwm.py @@ -292,7 +292,7 @@ def komap_mapswithme(options): if st.get('shield-text-halo-radius', 0) != 0: dr_element.shield.stroke_color = mwm_encode_color(colors, st, "shield-text-halo", "white") dr_element.shield.priority = min(19100, (16000 + int(st.get('z-index', 0)))) - if 'shield-min-distance' in st: + if st.get('shield-min-distance', 0) != 0: dr_element.shield.min_distance = int(st.get('shield-min-distance', 0)) if has_icons: