summaryrefslogtreecommitdiff
path: root/src/vignetting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vignetting.cpp')
-rw-r--r--src/vignetting.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/vignetting.cpp b/src/vignetting.cpp
index be8d1d4..7d8df81 100644
--- a/src/vignetting.cpp
+++ b/src/vignetting.cpp
@@ -185,6 +185,12 @@ VigScreen::optionChanged (CompOption *opt,
{
case VignettingOptions::Quality:
renderVignette ();
+ break;
+ case VignettingOptions::WindowMatch:
+ foreach (CompWindow *w, screen->windows ())
+ GLWindow::get (w)->glDrawSetEnabled (VigWindow::get (w),
+ opt->value ().match ().evaluate (w));
+ break;
default:
break;
}
@@ -200,7 +206,9 @@ VigWindow::VigWindow (CompWindow *w) :
cWindow (CompositeWindow::get (w)),
gWindow (GLWindow::get (w))
{
- GLWindowInterface::setHandler (gWindow);
+ bool enabled =
+ VigScreen::get (screen)->optionGetWindowMatch ().evaluate (w);
+ GLWindowInterface::setHandler (gWindow, enabled);
}
VigWindow::~VigWindow ()