mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-14 22:35:49 +00:00
fix kwin definition again
This commit is contained in:
@ -22,14 +22,14 @@
|
||||
#include <QEventLoop>
|
||||
#include <QSet>
|
||||
#include <QStandardPaths>
|
||||
#include <QtTest>
|
||||
|
||||
|
||||
bool AWTestLibrary::isKWinActive()
|
||||
{
|
||||
QEventLoop loop;
|
||||
loop.connect(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)), SLOT(quit()));
|
||||
QSignalSpy spy(KWindowSystem::self(), SIGNAL(showingDesktopChanged(bool)));
|
||||
KWindowSystem::setShowingDesktop(true);
|
||||
loop.exec();
|
||||
spy.wait(5000);
|
||||
|
||||
bool state = KWindowSystem::showingDesktop();
|
||||
KWindowSystem::setShowingDesktop(false);
|
||||
|
Reference in New Issue
Block a user