layershell: Implement dockWantsInput

Kwin logic has a separate method for if a dock wants input, given layer
shells are always docks it is important to implement this.
master
David Edmundson 11 months ago committed by Vlad Zahorodnii
parent 0f5e719b61
commit a8466c3604

@ -136,6 +136,11 @@ bool LayerShellV1Window::wantsInput() const
return acceptsFocus() && readyForPainting(); return acceptsFocus() && readyForPainting();
} }
bool LayerShellV1Window::dockWantsInput() const
{
return wantsInput();
}
StrutRect LayerShellV1Window::strutRect(StrutArea area) const StrutRect LayerShellV1Window::strutRect(StrutArea area) const
{ {
switch (area) { switch (area) {

@ -36,6 +36,7 @@ public:
bool isResizable() const override; bool isResizable() const override;
bool takeFocus() override; bool takeFocus() override;
bool wantsInput() const override; bool wantsInput() const override;
bool dockWantsInput() const override;
StrutRect strutRect(StrutArea area) const override; StrutRect strutRect(StrutArea area) const override;
bool hasStrut() const override; bool hasStrut() const override;
void destroyWindow() override; void destroyWindow() override;

Loading…
Cancel
Save