From 32bed57d5a27aee6ba6df1a5b101f5fbd1af44b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 1 Mar 2012 17:11:36 -0500 Subject: [PATCH] shell: Don't launch a new screensaver if the old one is still running --- src/shell.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/shell.c b/src/shell.c index 6afdf3ae..2b61202c 100644 --- a/src/shell.c +++ b/src/shell.c @@ -885,6 +885,11 @@ launch_screensaver(struct wl_shell *shell) if (!shell->screensaver.path) return; + if (shell->screensaver.process.pid != 0) { + fprintf(stderr, "old screensaver still running\n"); + return; + } + weston_client_launch(shell->compositor, &shell->screensaver.process, shell->screensaver.path,