tests cleanup

This commit is contained in:
2017-02-14 04:47:24 +03:00
parent 1caecb427b
commit 53afc07457
2 changed files with 6 additions and 5 deletions

View File

@ -19,13 +19,18 @@
#include "awtestlibrary.h"
#include <KWindowSystem>
#include <QEventLoop>
#include <QSet>
#include <QStandardPaths>
bool AWTestLibrary::isKWinActive()
{
QEventLoop loop;
loop.connect(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)), SLOT(quit()));
KWindowSystem::setShowingDesktop(true);
loop.exec();
bool state = KWindowSystem::showingDesktop();
KWindowSystem::setShowingDesktop(false);