summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2011-05-27 00:37:29 -0600
committerScott Moreau <oreaus@gmail.com>2011-05-27 00:45:46 -0600
commit4ddf181ab6e3ea1f9f83f5613bdeb36f3a69e082 (patch)
tree2b88a53e7dba5e2ad4307532726fae327ea29a10
parenta1f850c3f7f0d19592d23a091ce6ac46c414f38b (diff)
downloadopacify-4ddf181ab6e3ea1f9f83f5613bdeb36f3a69e082.tar.gz
opacify-4ddf181ab6e3ea1f9f83f5613bdeb36f3a69e082.tar.bz2
Enable by default.
-rw-r--r--src/opacify.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/opacify.cpp b/src/opacify.cpp
index a7c93bb..c87e200 100644
--- a/src/opacify.cpp
+++ b/src/opacify.cpp
@@ -397,7 +397,7 @@ OpacifyScreen::postLoad ()
OpacifyScreen::OpacifyScreen (CompScreen *screen) :
PluginClassHandler <OpacifyScreen, CompScreen> (screen),
PluginStateWriter <OpacifyScreen> (this, screen->root ()),
- isToggle (false),
+ isToggle (true),
newActive (NULL),
active (screen->activeWindow ()),
intersect (emptyRegion),
@@ -413,6 +413,8 @@ OpacifyScreen::OpacifyScreen (CompScreen *screen) :
_2, _3));
optionSetInitToggleNotify (boost::bind (&OpacifyScreen::optionChanged,
this, _1, _2));
+
+ screen->handleEventSetEnabled (this, optionGetInitToggle ());
}
OpacifyScreen::~OpacifyScreen ()