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.
This commit is contained in:
David Edmundson 2023-10-26 16:39:49 +01:00 committed by Vlad Zahorodnii
parent 0f5e719b61
commit a8466c3604
2 changed files with 6 additions and 0 deletions

View file

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

View file

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