shell: Don't launch a new screensaver if the old one is still running

Kristian Høgsberg 13 years ago
parent 525696851e
commit 32bed57d5a
  1. 5
      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,

Loading…
Cancel
Save