summaryrefslogtreecommitdiffstats
path: root/common.h
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 /common.h
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 'common.h')
-rw-r--r--common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common.h b/common.h
index d563c3764..bbbfeae8e 100644
--- a/common.h
+++ b/common.h
@@ -1962,7 +1962,7 @@ rect_is_fullscreen(session_t *ps, int x, int y, unsigned wid, unsigned hei) {
static inline bool
win_is_fullscreen(session_t *ps, const win *w) {
return rect_is_fullscreen(ps, w->a.x, w->a.y, w->widthb, w->heightb)
- && !w->bounding_shaped;
+ && (!w->bounding_shaped || w->rounded_corners);
}
/**