kwin/effects/slidingpopups
David Edmundson 1193e3c369 Correctly check forcebackgroundcontrastrule
Summary:
WindowBackgroundContrastRole property is a bool or undefined.

QVariant::isValid() returns true for QVariant(false) which is not what
we want for this code.

toBool on an invalid QVariant will return false.

Test Plan:
NA. Was based on code review.
To get a bug you'd have to PresentWindows/Slide effect manipulate a sliding popup, which
AFAIK doesn't happen.

Reviewers: #kwin

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D13478
2018-06-11 10:44:05 +01:00
..
CMakeLists.txt [effects] Drop the .desktop files for the BuiltIn Effects 2014-04-28 13:52:43 +02:00
slidingpopups.cpp Correctly check forcebackgroundcontrastrule 2018-06-11 10:44:05 +01:00
slidingpopups.h Honor animationsSupported in minimize, slide and sliding popups effects 2017-11-23 10:34:06 +01:00
slidingpopups.kcfg [effects] Use arg="true" in the kcfg files 2017-04-15 10:03:34 +02:00
slidingpopupsconfig.kcfgc [effects] Introduce kcfg for SlidingPopups 2016-11-16 13:05:02 +01:00