Use invokeMethod for closeWindow
This commit is contained in:
parent
a348df0d34
commit
18f64bd36d
4 changed files with 6 additions and 10 deletions
|
@ -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)) {
|
||||
|
|
|
@ -256,8 +256,6 @@ public:
|
|||
|
||||
virtual WindowQuadList buildQuads(bool force = false) const;
|
||||
|
||||
virtual void closeWindow() const;
|
||||
|
||||
virtual bool visibleInClientGroup() const;
|
||||
|
||||
const Toplevel* window() const;
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -1271,7 +1271,7 @@ public:
|
|||
|
||||
void minimize();
|
||||
void unminimize();
|
||||
virtual void closeWindow() const = 0;
|
||||
void closeWindow() const;
|
||||
|
||||
virtual bool visibleInClientGroup() const = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue