summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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