summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--screensaver.xml.in4
-rw-r--r--src/screensaver.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/screensaver.xml.in b/screensaver.xml.in
index d539b90..ed2f2d3 100644
--- a/screensaver.xml.in
+++ b/screensaver.xml.in
@@ -4,7 +4,11 @@
<_short>Screen Saver</_short>
<_long>Screen Saver</_long>
<deps>
+ <requirement>
+ <plugin>opengl</plugin>
+ </requirement>
<relation type="after">
+ <plugin>opengl</plugin>
<plugin>cube</plugin>
</relation>
</deps>
diff --git a/src/screensaver.cpp b/src/screensaver.cpp
index 3a38224..e2001bc 100644
--- a/src/screensaver.cpp
+++ b/src/screensaver.cpp
@@ -192,7 +192,7 @@ ScreenSaverScreen::setXScreenSaver (bool enabled)
{
Window root = screen->root ();
- if (enabled && mXSSContext.init)
+ if (enabled && !mXSSContext.init)
{
int dummy;
long unsigned int mask = 0;