summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2014-04-28 21:21:16 +0800
committerRichard Grenville <[email protected]>2014-04-28 21:21:16 +0800
commit6449cc2049b073e27ac49099ce2c1430ec964199 (patch)
tree321156142444cd164f79b7118e814796714d23d5
parent5df42e8eb18437bdaa431b8fd5c422c66d67b75f (diff)
downloadtdebase-6449cc2049b073e27ac49099ce2c1430ec964199.tar.gz
tdebase-6449cc2049b073e27ac49099ce2c1430ec964199.zip
Bug fix #194: Fix assertion failure in some cases
Fix assertion failure when evaluating --unredir-if-possible-exclude or --paint-exclude on unmapped windows. Thanks to ppuryear for reporting. (#194)
-rw-r--r--compton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compton.c b/compton.c
index 00464ffc0..4c432baed 100644
--- a/compton.c
+++ b/compton.c
@@ -2623,10 +2623,10 @@ win_on_factor_change(session_t *ps, win *w) {
win_determine_blur_background(ps, w);
if (ps->o.opacity_rules)
win_update_opacity_rule(ps, w);
- if (ps->o.paint_blacklist)
+ if (IsViewable == w->a.map_state && ps->o.paint_blacklist)
w->paint_excluded = win_match(ps, w, ps->o.paint_blacklist,
&w->cache_pblst);
- if (ps->o.unredir_if_possible_blacklist)
+ if (IsViewable == w->a.map_state && ps->o.unredir_if_possible_blacklist)
w->unredir_if_possible_excluded = win_match(ps, w,
ps->o.unredir_if_possible_blacklist, &w->cache_uipblst);
}