shell: Don't launch a new screensaver if the old one is still running
This commit is contained in:
parent
525696851e
commit
32bed57d5a
|
@ -885,6 +885,11 @@ launch_screensaver(struct wl_shell *shell)
|
||||||
if (!shell->screensaver.path)
|
if (!shell->screensaver.path)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (shell->screensaver.process.pid != 0) {
|
||||||
|
fprintf(stderr, "old screensaver still running\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
weston_client_launch(shell->compositor,
|
weston_client_launch(shell->compositor,
|
||||||
&shell->screensaver.process,
|
&shell->screensaver.process,
|
||||||
shell->screensaver.path,
|
shell->screensaver.path,
|
||||||
|
|
Loading…
Reference in New Issue