summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <smspillaz@gmail.com>2010-08-06 00:30:53 +0800
committerSam Spilsbury <smspillaz@gmail.com>2010-08-06 00:30:53 +0800
commitc60e3ea388cf9a77a4626b2d4b55c5272654f89d (patch)
tree2e44b83d755ace404002947dba0b2cc7cee26ac8
parent5437df79e5296aa32b87b456b6a52a9f6f759a5b (diff)
downloaddrunken-c60e3ea388cf9a77a4626b2d4b55c5272654f89d.tar.gz
drunken-c60e3ea388cf9a77a4626b2d4b55c5272654f89d.tar.bz2
Ensure new windows have their paint functions turned on when the effect is enabled
-rw-r--r--src/drunken.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drunken.cpp b/src/drunken.cpp
index 06c970f..c57a51a 100644
--- a/src/drunken.cpp
+++ b/src/drunken.cpp
@@ -120,8 +120,10 @@ DrunkenWindow::DrunkenWindow (CompWindow *window) :
gWindow (GLWindow::get (window)),
mDrunkFactor (0)
{
- CompositeWindowInterface::setHandler (cWindow, false);
- GLWindowInterface::setHandler (gWindow, false);
+ bool enabled = DrunkenScreen::get (screen)->mEnabled;
+
+ CompositeWindowInterface::setHandler (cWindow, enabled);
+ GLWindowInterface::setHandler (gWindow, enabled);
}
bool