Commit 4b27abd7 authored by Martin Flöser's avatar Martin Flöser

Move implementation of wantsTabFocus to AbstractClient

parent 1fcd1120
......@@ -214,4 +214,9 @@ void AbstractClient::autoRaise()
cancelAutoRaise();
}
bool AbstractClient::wantsTabFocus() const
{
return (isNormalWindow() || isDialog()) && wantsInput();
}
}
......@@ -109,13 +109,14 @@ public:
void cancelAutoRaise();
bool wantsTabFocus() const;
virtual void updateMouseGrab();
virtual QString caption(bool full = true, bool stripped = false) const = 0;
virtual bool isMinimized() const = 0;
virtual bool isCloseable() const = 0;
// TODO: remove boolean trap
virtual bool isShown(bool shaded_is_shown) const = 0;
virtual bool wantsTabFocus() const = 0;
virtual bool isFullScreen() const = 0;
// TODO: remove boolean trap
virtual AbstractClient *findModal(bool allow_itself = false) = 0;
......
......@@ -1962,11 +1962,6 @@ void Client::sendSyncRequest()
syncRequest.lastTimestamp = xTime();
}
bool Client::wantsTabFocus() const
{
return (isNormalWindow() || isDialog()) && wantsInput();
}
bool Client::wantsInput() const
{
return rules()->checkAcceptFocus(info->input() || info->supportsProtocol(NET::TakeFocusProtocol));
......
......@@ -387,7 +387,6 @@ public:
bool isModal() const;
// Auxiliary functions, depend on the windowType
bool wantsTabFocus() const override;
bool wantsInput() const override;
bool isResizable() const 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