summaryrefslogtreecommitdiff
path: root/src/XScrnSaver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XScrnSaver.c')
-rw-r--r--src/XScrnSaver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XScrnSaver.c b/src/XScrnSaver.c
index 1e3fe70..0bbdc60 100644
--- a/src/XScrnSaver.c
+++ b/src/XScrnSaver.c
@@ -351,7 +351,7 @@ void XScreenSaverSetAttributes (
req->borderWidth = border_width;
req->c_class = class;
req->depth = depth;
- if (visual == CopyFromParent)
+ if (visual == (Visual *)CopyFromParent)
req->visualID = CopyFromParent;
else
req->visualID = visual->visualid;