plasma: remove redundant PlasmaApp::hasComposite() methods

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-07-04 17:57:23 +03:00
parent 2f5c1e72ef
commit 4a732fb667
5 changed files with 1 additions and 20 deletions

View file

@ -1463,7 +1463,7 @@ void PanelView::appletAdded(Plasma::Applet *applet)
bool PanelView::shouldHintHide() const
{
return m_visibilityMode == AutoHide && PlasmaApp::hasComposite();
return m_visibilityMode == AutoHide && KWindowSystem::compositingActive();
}
void PanelView::recreateUnhideTrigger()

View file

@ -626,16 +626,6 @@ void PlasmaApp::wallpaperCheckedIn()
}
}
bool PlasmaApp::hasComposite()
{
// return true;
#ifdef Q_WS_X11
return KWindowSystem::compositingActive();
#else
return false;
#endif
}
void PlasmaApp::suspendStartup(bool suspend)
{
org::kde::KSMServerInterface ksmserver("org.kde.ksmserver", "/KSMServer", QDBusConnection::sessionBus());

View file

@ -59,7 +59,6 @@ public:
~PlasmaApp();
static PlasmaApp *self();
static bool hasComposite();
void suspendStartup(bool completed);
DesktopCorona *corona(bool createIfMissing = true);

View file

@ -217,12 +217,6 @@ Plasma::Corona* PlasmaApp::corona()
return m_corona;
}
bool PlasmaApp::hasComposite()
{
return KWindowSystem::compositingActive();
}
void PlasmaApp::storeApplet(Plasma::Applet *applet)
{
m_storedApplets.insert(applet->name(), applet->id());

View file

@ -52,11 +52,9 @@ public:
int newInstance();
static PlasmaApp* self();
static bool hasComposite();
Plasma::Corona* corona();
private:
PlasmaApp();