diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index f285534..53dc2e8 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -109,6 +109,8 @@ void CHyprBar::onMouseDown(SCallbackInfo& info, IPointer::SButtonEvent e) { return; } + g_pCompositor->focusWindow(PWINDOW); + if (PWINDOW->m_bIsFloating) g_pCompositor->changeWindowZOrder(PWINDOW, true);