summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2011-05-17 19:06:37 -0600
committerScott Moreau <oreaus@gmail.com>2011-05-17 19:06:37 -0600
commit94efd410166a5431d2ced63920e3b70e780629ca (patch)
tree103b0cc50cae84a0d14cce804bfd02d642868ba5
parent04dcec41b62fa940149d82417ee5524ece8995b0 (diff)
downloadneg-94efd410166a5431d2ced63920e3b70e780629ca.tar.gz
neg-94efd410166a5431d2ced63920e3b70e780629ca.tar.bz2
Add damage to negative windows when toggling neg_decorations.
-rw-r--r--src/neg.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/neg.cpp b/src/neg.cpp
index c32d425..e8c236f 100644
--- a/src/neg.cpp
+++ b/src/neg.cpp
@@ -494,6 +494,12 @@ NegScreen::optionChanged (CompOption *opt,
}
}
break;
+ case NegOptions::NegDecorations:
+ {
+ foreach (CompWindow *w, screen->windows ())
+ if (NegWindow::get (w)->isNeg)
+ NegWindow::get (w)->cWindow->addDamage ();
+ }
default:
break;
}
@@ -518,6 +524,8 @@ NegScreen::NegScreen (CompScreen *screen) :
_1, _2));
optionSetExcludeMatchNotify (boost::bind (&NegScreen::optionChanged, this,
_1, _2));
+ optionSetNegDecorationsNotify (boost::bind (&NegScreen::optionChanged, this,
+ _1, _2));
}