Commit 3cec7e63 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Drop Window::setClientShown()

It's unused.
parent 2fdb55b1
Pipeline #169813 passed with stage
in 18 minutes and 8 seconds
......@@ -802,11 +802,6 @@ bool Window::isTransient() const
return false;
}
void Window::setClientShown(bool shown)
{
Q_UNUSED(shown)
}
xcb_timestamp_t Window::userTime() const
{
return XCB_TIME_CURRENT_TIME;
......
......@@ -1016,8 +1016,6 @@ public:
}
virtual void setFullScreen(bool set, bool user = true);
virtual void setClientShown(bool shown);
QRect geometryRestore() const;
virtual MaximizeMode maximizeMode() const;
virtual MaximizeMode requestedMaximizeMode() const;
......
......@@ -2188,28 +2188,6 @@ void X11Window::fetchIconicName()
}
}
void X11Window::setClientShown(bool shown)
{
if (isZombie()) {
return; // Don't change shown status if this client is being deleted
}
if (shown != hidden) {
return; // nothing to change
}
hidden = !shown;
if (shown) {
map();
takeFocus();
autoRaise();
FocusChain::self()->update(this, FocusChain::MakeFirst);
} else {
unmap();
// Don't move tabs to the end of the list when another tab get's activated
FocusChain::self()->update(this, FocusChain::MakeLast);
addWorkspaceRepaint(visibleGeometry());
}
}
void X11Window::getMotifHints()
{
const bool wasClosable = isCloseable();
......
......@@ -258,14 +258,6 @@ public:
StrutRect strutRect(StrutArea area) const override;
bool hasStrut() const override;
/**
* If shown is true the client is mapped and raised, if false
* the client is unmapped and hidden, this function is called
* when the tabbing group of the client switches its visible
* client.
*/
void setClientShown(bool shown) override;
bool isClientSideDecorated() const;
Xcb::Property fetchFirstInTabBox() const;
......
Supports Markdown
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