mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: remove redundant PlasmaApp::hasComposite() methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
2f5c1e72ef
commit
4a732fb667
5 changed files with 1 additions and 20 deletions
|
@ -1463,7 +1463,7 @@ void PanelView::appletAdded(Plasma::Applet *applet)
|
||||||
|
|
||||||
bool PanelView::shouldHintHide() const
|
bool PanelView::shouldHintHide() const
|
||||||
{
|
{
|
||||||
return m_visibilityMode == AutoHide && PlasmaApp::hasComposite();
|
return m_visibilityMode == AutoHide && KWindowSystem::compositingActive();
|
||||||
}
|
}
|
||||||
|
|
||||||
void PanelView::recreateUnhideTrigger()
|
void PanelView::recreateUnhideTrigger()
|
||||||
|
|
|
@ -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)
|
void PlasmaApp::suspendStartup(bool suspend)
|
||||||
{
|
{
|
||||||
org::kde::KSMServerInterface ksmserver("org.kde.ksmserver", "/KSMServer", QDBusConnection::sessionBus());
|
org::kde::KSMServerInterface ksmserver("org.kde.ksmserver", "/KSMServer", QDBusConnection::sessionBus());
|
||||||
|
|
|
@ -59,7 +59,6 @@ public:
|
||||||
~PlasmaApp();
|
~PlasmaApp();
|
||||||
|
|
||||||
static PlasmaApp *self();
|
static PlasmaApp *self();
|
||||||
static bool hasComposite();
|
|
||||||
|
|
||||||
void suspendStartup(bool completed);
|
void suspendStartup(bool completed);
|
||||||
DesktopCorona *corona(bool createIfMissing = true);
|
DesktopCorona *corona(bool createIfMissing = true);
|
||||||
|
|
|
@ -217,12 +217,6 @@ Plasma::Corona* PlasmaApp::corona()
|
||||||
return m_corona;
|
return m_corona;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PlasmaApp::hasComposite()
|
|
||||||
{
|
|
||||||
return KWindowSystem::compositingActive();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void PlasmaApp::storeApplet(Plasma::Applet *applet)
|
void PlasmaApp::storeApplet(Plasma::Applet *applet)
|
||||||
{
|
{
|
||||||
m_storedApplets.insert(applet->name(), applet->id());
|
m_storedApplets.insert(applet->name(), applet->id());
|
||||||
|
|
|
@ -52,11 +52,9 @@ public:
|
||||||
int newInstance();
|
int newInstance();
|
||||||
|
|
||||||
static PlasmaApp* self();
|
static PlasmaApp* self();
|
||||||
static bool hasComposite();
|
|
||||||
|
|
||||||
Plasma::Corona* corona();
|
Plasma::Corona* corona();
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PlasmaApp();
|
PlasmaApp();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue