From 690c328c3806dfb155816e13312b1e6f122fdc83 Mon Sep 17 00:00:00 2001 From: HuntedByTheIRS Date: Fri, 3 Jul 2026 03:26:22 -0400 Subject: [PATCH] parser: add CfgApplyEffects struct and extend CfgRule with fullscreen, can_float, can_fullscreen, apply_effects --- parser/parser.h | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/parser/parser.h b/parser/parser.h index f0dbd39..a385b68 100644 --- a/parser/parser.h +++ b/parser/parser.h @@ -45,14 +45,31 @@ typedef struct { int tap_button_map; /* libinput enum value */ } CfgInput; +/* Per-rule effect toggles — which effects to apply to matched windows */ + +typedef struct { + bool rounding; + bool shadows; + bool transparency; + bool blur; + bool gaps; + bool smartgaps; + bool border; + bool sloppy_focus; +} CfgApplyEffects; + /* Window Rules */ typedef struct { - char app_id[CFG_MAX_STRLEN]; - char title[CFG_MAX_STRLEN]; /* empty string = wildcard */ - uint32_t tags; - bool floating; - int monitor; /* -1 = current */ + char app_id[CFG_MAX_STRLEN]; + char title[CFG_MAX_STRLEN]; /* empty string = wildcard */ + uint32_t tags; + bool floating; + bool fullscreen; + bool can_float; + bool can_fullscreen; + CfgApplyEffects apply_effects; + int monitor; /* -1 = current */ } CfgRule; /* Monitor Rules */