Decos: Window decoration flags, shadow improvements (#3739)

This commit is contained in:
Vaxry
2023-11-04 13:10:52 +00:00
committed by GitHub
parent 54e51b7acf
commit 73e78f05ad
17 changed files with 192 additions and 75 deletions

View File

@@ -1841,7 +1841,7 @@ void CKeybindManager::mouse(std::string args) {
if (pWindow && !pWindow->m_bIsFullscreen && !pWindow->hasPopupAt(mouseCoords)) {
for (auto& wd : pWindow->m_dWindowDecorations) {
if (!wd->allowsInput())
if (!(wd->getDecorationFlags() & DECORATION_ALLOWS_MOUSE_INPUT))
continue;
if (wd->getWindowDecorationRegion().containsPoint(mouseCoords)) {