diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-11-04 13:10:52 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-04 13:10:52 +0000 |
| commit | 73e78f05ad5cafa20ac5bf177c94ac9ecca37097 (patch) | |
| tree | 20a61de56d8542ef0d7e9be463aea181d7a73387 /src/managers/input/InputManager.cpp | |
| parent | 54e51b7acf809b4cf705ae516f78a910c70e651f (diff) | |
Decos: Window decoration flags, shadow improvements (#3739)
Diffstat (limited to 'src/managers/input/InputManager.cpp')
| -rw-r--r-- | src/managers/input/InputManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/managers/input/InputManager.cpp b/src/managers/input/InputManager.cpp index 09571291..dcbf4e3c 100644 --- a/src/managers/input/InputManager.cpp +++ b/src/managers/input/InputManager.cpp @@ -585,7 +585,7 @@ void CInputManager::processMouseDownNormal(wlr_pointer_button_event* e) { if (w && !w->m_bIsFullscreen && !w->hasPopupAt(mouseCoords)) { for (auto& wd : w->m_dWindowDecorations) { - if (!wd->allowsInput()) + if (!(wd->getDecorationFlags() & DECORATION_ALLOWS_MOUSE_INPUT)) continue; if (wd->getWindowDecorationRegion().containsPoint(mouseCoords)) { @@ -1634,11 +1634,11 @@ void CInputManager::setCursorIconOnBorder(CWindow* w) { bool onDeco = false; - for (auto& d : w->m_dWindowDecorations) { - if (!d->allowsInput()) + for (auto& wd : w->m_dWindowDecorations) { + if (!(wd->getDecorationFlags() & DECORATION_ALLOWS_MOUSE_INPUT)) continue; - if (d->getWindowDecorationRegion().containsPoint(mouseCoords)) { + if (wd->getWindowDecorationRegion().containsPoint(mouseCoords)) { onDeco = true; break; } |
