summaryrefslogtreecommitdiffstats
path: root/c2.c
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-04-21 22:45:27 +0800
committerRichard Grenville <[email protected]>2014-04-21 22:45:27 +0800
commit5df42e8eb18437bdaa431b8fd5c422c66d67b75f (patch)
treee4089a88ff7a16ce4ca41f8b3c60f620709402b1 /c2.c
parent6a5738080a69b6978c81a257c4784ab67ce8de92 (diff)
downloadtdebase-5df42e8eb18437bdaa431b8fd5c422c66d67b75f.tar.gz
tdebase-5df42e8eb18437bdaa431b8fd5c422c66d67b75f.zip
Bug fix #191: Add rounded-corners detection to --unredir-if-possible
Add `bounding_shape` and `rounded_corners` as condition match target. Deprecate --shadow-ignore-shaped. Add rounded-corners detection to win_is_fullscreen(). Slightly modify win_rounded_corners() logic. Thanks to tdryer for reporting. (#191)
Diffstat (limited to 'c2.c')
-rw-r--r--c2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/c2.c b/c2.c
index f70dcb5a7..6baf1337e 100644
--- a/c2.c
+++ b/c2.c
@@ -764,6 +764,7 @@ c2_l_postprocess(session_t *ps, c2_l_t *pleaf) {
if (pleaf->predef) {
switch (pleaf->predef) {
case C2_L_PFOCUSED: ps->o.track_focus = true; break;
+ // case C2_L_PROUNDED: ps->o.detect_rounded_corners = true; break;
case C2_L_PNAME:
case C2_L_PCLASSG:
case C2_L_PCLASSI:
@@ -1057,6 +1058,8 @@ c2_match_once_leaf(session_t *ps, win *w, const c2_l_t *pleaf,
case C2_L_PARGB: tgt = (WMODE_ARGB == w->mode); break;
case C2_L_PFOCUSED: tgt = win_is_focused_real(ps, w); break;
case C2_L_PWMWIN: tgt = w->wmwin; break;
+ case C2_L_PBSHAPED: tgt = w->bounding_shaped; break;
+ case C2_L_PROUNDED: tgt = w->rounded_corners; break;
case C2_L_PCLIENT: tgt = w->client_win; break;
case C2_L_PLEADER: tgt = w->leader; break;
default: *perr = true; assert(0); break;