mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 14:25:50 +00:00
tests cleanup
This commit is contained in:
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user