Remove unused screen edge related methods from kwineffects interface
No effect has ever used these methods and there is no reason why an effect should use them. Reserve/unreserve is sufficient as the effect will be notified anyway.
This commit is contained in:
parent
2a2d85672f
commit
e47fdf5caa
3 changed files with 0 additions and 23 deletions
19
effects.cpp
19
effects.cpp
|
@ -1184,16 +1184,6 @@ QPoint EffectsHandlerImpl::cursorPos() const
|
|||
return Workspace::self()->cursorPos();
|
||||
}
|
||||
|
||||
void EffectsHandlerImpl::checkElectricBorder(const QPoint &pos, Time time)
|
||||
{
|
||||
#ifdef KWIN_BUILD_SCREENEDGES
|
||||
Workspace::self()->screenEdge()->check(pos, time);
|
||||
#else
|
||||
Q_UNUSED(pos)
|
||||
Q_UNUSED(time)
|
||||
#endif
|
||||
}
|
||||
|
||||
void EffectsHandlerImpl::reserveElectricBorder(ElectricBorder border)
|
||||
{
|
||||
#ifdef KWIN_BUILD_SCREENEDGES
|
||||
|
@ -1212,15 +1202,6 @@ void EffectsHandlerImpl::unreserveElectricBorder(ElectricBorder border)
|
|||
#endif
|
||||
}
|
||||
|
||||
void EffectsHandlerImpl::reserveElectricBorderSwitching(bool reserve, Qt::Orientations o)
|
||||
{
|
||||
#ifdef KWIN_BUILD_SCREENEDGES
|
||||
Workspace::self()->screenEdge()->reserveDesktopSwitching(reserve, o);
|
||||
#else
|
||||
Q_UNUSED(reserve)
|
||||
#endif
|
||||
}
|
||||
|
||||
unsigned long EffectsHandlerImpl::xrenderBufferPicture()
|
||||
{
|
||||
#ifdef KWIN_HAVE_XRENDER_COMPOSITING
|
||||
|
|
|
@ -140,10 +140,8 @@ public:
|
|||
virtual bool checkInputWindowEvent(XEvent* e);
|
||||
virtual void checkInputWindowStacking();
|
||||
|
||||
virtual void checkElectricBorder(const QPoint &pos, Time time);
|
||||
virtual void reserveElectricBorder(ElectricBorder border);
|
||||
virtual void unreserveElectricBorder(ElectricBorder border);
|
||||
virtual void reserveElectricBorderSwitching(bool reserve, Qt::Orientations o);
|
||||
|
||||
virtual unsigned long xrenderBufferPicture();
|
||||
virtual void reconfigure();
|
||||
|
|
|
@ -651,10 +651,8 @@ public:
|
|||
virtual void startMousePolling() = 0;
|
||||
virtual void stopMousePolling() = 0;
|
||||
|
||||
virtual void checkElectricBorder(const QPoint &pos, Time time) = 0;
|
||||
virtual void reserveElectricBorder(ElectricBorder border) = 0;
|
||||
virtual void unreserveElectricBorder(ElectricBorder border) = 0;
|
||||
virtual void reserveElectricBorderSwitching(bool reserve, Qt::Orientations o) = 0;
|
||||
|
||||
// functions that allow controlling windows/desktop
|
||||
virtual void activateWindow(KWin::EffectWindow* c) = 0;
|
||||
|
|
Loading…
Reference in a new issue