Commit a281bece authored by Vlad Zahorodnii's avatar Vlad Zahorodnii

Introduce AbstractClient::doSetDemandsAttention()

Subscribers: kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D27119
parent f90c65f4
......@@ -407,13 +407,15 @@ void AbstractClient::demandAttention(bool set)
if (m_demandsAttention == set)
return;
m_demandsAttention = set;
if (info) {
info->setState(set ? NET::DemandsAttention : NET::States(), NET::DemandsAttention);
}
doSetDemandsAttention();
workspace()->clientAttentionChanged(this, set);
emit demandsAttentionChanged();
}
void AbstractClient::doSetDemandsAttention()
{
}
void AbstractClient::setDesktop(int desktop)
{
const int numberOfDesktops = VirtualDesktopManager::self()->count();
......
......@@ -984,6 +984,7 @@ protected:
virtual void doSetSkipTaskbar();
virtual void doSetSkipPager();
virtual void doSetSkipSwitcher();
virtual void doSetDemandsAttention();
void setupWindowManagementInterface();
void destroyWindowManagementInterface();
......
......@@ -1922,6 +1922,11 @@ void X11Client::doSetDesktop(int desktop, int was_desk)
updateVisibility();
}
void X11Client::doSetDemandsAttention()
{
info->setState(isDemandingAttention() ? NET::DemandsAttention : NET::States(), NET::DemandsAttention);
}
/**
* Sets whether the client is on @p activity.
* If you remove it from its last activity, then it's on all activities.
......
......@@ -365,6 +365,7 @@ protected:
void doSetSkipPager() override;
void doSetSkipTaskbar() override;
void doSetSkipSwitcher() override;
void doSetDemandsAttention() override;
bool belongsToDesktop() const override;
void setGeometryRestore(const QRect &geo) override;
bool doStartMoveResize() override;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment