From 2ef9e75495cc9595e8455b1c4b8ee38e2ba670b4 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Thu, 27 Jul 2017 16:26:21 +0300 Subject: [PATCH] Remove hardcoded sport key reference --- src/libkomwm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libkomwm.py b/src/libkomwm.py index 866dab0..8a6d0c0 100644 --- a/src/libkomwm.py +++ b/src/libkomwm.py @@ -214,8 +214,7 @@ def komap_mapswithme(options): mapcss_static_tags = {} for v in classificator.values(): for i, t in enumerate(v.keys()): - # Exception for "sport=*" since these are both main and secondary keys. - mapcss_static_tags[t] = i == 0 and t != 'sport' + mapcss_static_tags[t] = mapcss_static_tags.get(t, True) and i == 0 # Get all mapcss dynamic tags from mapcss-dynamic.txt mapcss_dynamic_tags = set([line.rstrip() for line in open(os.path.join(ddir, 'mapcss-dynamic.txt'))])