Commit e46f81ec authored by Martin Flöser's avatar Martin Flöser
Browse files

Make skipPager and skipTaskbar available to scripts

parent 0b1f4fc1
......@@ -1514,6 +1514,7 @@ void Client::setSkipTaskbar(bool b, bool from_outside)
if (was_wants_tab_focus != wantsTabFocus())
isActive() ? Workspace::FocusChainMakeFirst : Workspace::FocusChainUpdate);
emit skipTaskbarChanged();
void Client::setSkipPager(bool b)
......@@ -1524,6 +1525,7 @@ void Client::setSkipPager(bool b)
skip_pager = b;
info->setState(b ? NET::SkipPager : 0, NET::SkipPager);
emit skipPagerChanged();
void Client::setSkipSwitcher(bool set)
......@@ -218,6 +218,14 @@ class Client
* Whether the Client should be excluded from window switching effects.
Q_PROPERTY(bool skipSwitcher READ skipSwitcher WRITE setSkipSwitcher NOTIFY skipSwitcherChanged)
* Indicates that the window should not be included on a taskbar.
Q_PROPERTY(bool skipTaskbar READ skipTaskbar WRITE setSkipTaskbar NOTIFY skipTaskbarChanged)
* Indicates that the window should not be included on a Pager.
Q_PROPERTY(bool skipPager READ skipPager WRITE setSkipPager NOTIFY skipPagerChanged)
* The "Window Tabs" Group this Client belongs to.
......@@ -363,7 +371,7 @@ public:
void checkNoBorder();
bool skipTaskbar(bool from_outside = false) const;
void setSkipTaskbar(bool set, bool from_outside);
void setSkipTaskbar(bool set, bool from_outside = false);
bool skipPager() const;
void setSkipPager(bool);
......@@ -676,6 +684,8 @@ signals:
void moveResizedChanged();
void iconChanged();
void skipSwitcherChanged();
void skipTaskbarChanged();
void skipPagerChanged();
* Emitted whenever the Client's TabGroup changed. That is whenever the Client is moved to
* another group, but not when a Client gets added or removed to the Client's ClientGroup.
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