862edd5ca01a6c922c81de7b6e6fa1bfc670648b
- Author
- y-haidar <yousef.haidar@outlook.com>
- Committer
- y-haidar <yousef.haidar@outlook.com>
- Date
Message
fix: return early from mouseButtonHook if window is fullscreen
Diff
1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
2index a62acb65085cec8b77c27d56dff1a76268266a25..0ce118fc136567922b9efaeae36684600e3d1026 100644
3--- a/src/Hy3Layout.cpp
4+++ b/src/Hy3Layout.cpp
5@@ -1595,7 +1595,7 @@ void Hy3Layout::mouseButtonHook(void*, SCallbackInfo& info, std::any data) {
6
7 // non window-parented surface focused, cant have a tab
8 auto window = ptr_surface->getWindow();
9- if (!window || window->m_bIsFloating) return;
10+ if (!window || window->m_bIsFloating || window->isFullscreen()) return;
11
12 auto* node = g_Hy3Layout->getNodeFromWindow(window.get());
13 if (!node) return;