summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moreau <oreaus@gmail.com>2010-09-14 19:20:48 -0600
committerScott Moreau <oreaus@gmail.com>2010-09-14 19:20:48 -0600
commit6d4f226bf50590f54424516a31557a64dd25c8ef (patch)
tree7498d6685e7577d812f85d7c15f37d8cbb22c546
parent1ad24de33275b4326ddab3201e8c54c5c898d7a1 (diff)
downloadscreensaver-6d4f226bf50590f54424516a31557a64dd25c8ef.tar.gz
screensaver-6d4f226bf50590f54424516a31557a64dd25c8ef.tar.bz2
Fix porting bugs.
-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;