From 5df42e8eb18437bdaa431b8fd5c422c66d67b75f Mon Sep 17 00:00:00 2001 From: Richard Grenville Date: Mon, 21 Apr 2014 22:45:27 +0800 Subject: 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) --- common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common.h') 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); } /** -- cgit v1.2.1