From d580b748f254e13813985d5e40bcd6ddb715b305 Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Fri, 24 Mar 2023 22:16:10 +0200 Subject: [PATCH] Make captions optional by default Signed-off-by: Konstantin Pastbin --- src/libkomwm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libkomwm.py b/src/libkomwm.py index 418684e..d741ca1 100644 --- a/src/libkomwm.py +++ b/src/libkomwm.py @@ -503,6 +503,9 @@ def komap_mapswithme(options): dr_cur_subtext.is_optional = value else: dr_cur_subtext.is_optional = True + elif st.get('text-position', 'center') == 'center' and dr_element.symbol.priority: + # On by default for all captions (not path texts) with icons. + dr_cur_subtext.is_optional = True dr_cur_subtext = dr_text.secondary # Priority is assigned from the first (primary) rule.