diff options
author | Thomas White <taw@bitwiz.org.uk> | 2013-09-17 22:38:50 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2013-09-17 22:38:50 +0200 |
commit | a91aa0a9e947831f618e4c5e608c56742273d8b9 (patch) | |
tree | 6954ef762d8653b11c1d917927dbe41601b88ef0 /src/presentation.c | |
parent | 4e90a9c416a66e3ab6170e2a557d8966d93fbbd2 (diff) |
Inhibit screensaver when slideshow is running
Diffstat (limited to 'src/presentation.c')
-rw-r--r-- | src/presentation.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/presentation.c b/src/presentation.c index 3c4e593..0847e84 100644 --- a/src/presentation.c +++ b/src/presentation.c @@ -38,6 +38,7 @@ #include "imagestore.h" #include "wrap.h" #include "notes.h" +#include "inhibit_screensaver.h" static int num_presentations = 0; @@ -55,6 +56,8 @@ void free_presentation(struct presentation *p) (*p->num_presentations)--; if ( *p->num_presentations == 0 ) final = 1; + if ( p->inhibit != NULL ) inhibit_cleanup(p->inhibit); + /* FIXME: Loads of stuff leaks here */ free(p->filename); imagestore_destroy(p->is); |