Use invokeMethod for closeWindow

This commit is contained in:
Martin Gräßlin 2012-01-04 18:33:37 +01:00
parent a348df0d34
commit 18f64bd36d
4 changed files with 6 additions and 10 deletions

View file

@ -1465,13 +1465,6 @@ WindowQuadList EffectWindowImpl::buildQuads(bool force) const
return sceneWindow()->buildQuads(force);
}
void EffectWindowImpl::closeWindow() const
{
if (Client* c = dynamic_cast< Client* >(toplevel)) {
c->closeWindow();
}
}
bool EffectWindowImpl::visibleInClientGroup() const
{
if (Client* c = dynamic_cast< Client* >(toplevel)) {

View file

@ -256,8 +256,6 @@ public:
virtual WindowQuadList buildQuads(bool force = false) const;
virtual void closeWindow() const;
virtual bool visibleInClientGroup() const;
const Toplevel* window() const;

View file

@ -394,6 +394,11 @@ WINDOW_HELPER_SETTER(unminimize, "minimized",,false)
#undef WINDOW_HELPER_SETTER
void EffectWindow::closeWindow() const
{
QMetaObject::invokeMethod(parent(), "closeWindow");
}
bool EffectWindow::isOnCurrentActivity() const
{
return isOnActivity(effects->currentActivity());

View file

@ -1271,7 +1271,7 @@ public:
void minimize();
void unminimize();
virtual void closeWindow() const = 0;
void closeWindow() const;
virtual bool visibleInClientGroup() const = 0;