mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-28 18:50:40 +03:00
enable strtus fro all alternative DEs
This commit is contained in:
parent
87efe01a96
commit
4f3fef1fda
@ -426,7 +426,7 @@ bool VisibilityManager::canSetStrut() const
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!KWindowSystem::isPlatformX11()) {
|
||||
if (!KWindowSystem::isPlatformX11() || !m_wm->isKWinRunning()/*alternative de*/) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -261,6 +261,11 @@ bool AbstractWindowInterface::inCurrentDesktopActivity(const WindowInfoWrap &win
|
||||
}
|
||||
|
||||
//! KWin Interface
|
||||
bool AbstractWindowInterface::isKWinRunning() const
|
||||
{
|
||||
return m_isKWinInterfaceAvailable;
|
||||
}
|
||||
|
||||
void AbstractWindowInterface::initKWinInterface()
|
||||
{
|
||||
QDBusInterface kwinIface(KWINSERVICE, "/VirtualDesktopManager", KWINVIRTUALDESKTOPMANAGERNAMESPACE, QDBusConnection::sessionBus());
|
||||
|
@ -102,6 +102,8 @@ public:
|
||||
virtual WindowId winIdFor(QString appId, QString title) = 0;
|
||||
virtual AppData appDataFor(WindowId wid) = 0;
|
||||
|
||||
bool isKWinRunning() const;
|
||||
|
||||
bool inCurrentDesktopActivity(const WindowInfoWrap &winfo);
|
||||
bool isShowingDesktop() const;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user