Commit 3f080d44 authored by Johannes Stefan's avatar Johannes Stefan Committed by Martin Klapetek
Browse files

Set default non-empty reason for screen saver inhibition

Gnome Session Manager is unhappy when something tries to inhibit the
screensaver with no reason, so add a default reason to never inhibit
with an empty one.

This should fix Gwenview hanging when switching to fullscreen viewing in
non-Plasma DE's.

REVIEW: 125910
BUG: 334525
FIXED-IN: 5.18
CHANGELOG: Set default non-empty reason for screen saver inhibition;
should fix Gwenview hanging up when switching to fullscreen in non-
Plasma DE's
parent 30e82248
......@@ -42,6 +42,7 @@ public:
: q(qq),
control(c)
, screenSaverDbusCookie(-1)
, reason("no_reason_specified")
#if HAVE_XTEST
, screensaverTimer(0),
haveXTest(0),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment