hyprbars: bring window to top on mouse down

fixes #65
This commit is contained in:
Vaxry 2023-12-28 22:18:12 +01:00
parent e654b1e9f6
commit c6c9fba566

View file

@ -90,6 +90,9 @@ void CHyprBar::onMouseDown(SCallbackInfo& info, wlr_pointer_button_event* e) {
return;
}
if (m_pWindow->m_bIsFloating)
g_pCompositor->changeWindowZOrder(m_pWindow, true);
info.cancelled = true;
m_bCancelledDown = true;