From 7dc20bdf16ce876966e7a904c416a8e520a14793 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 25 Dec 2024 16:12:12 +0100 Subject: [PATCH] hyprbars: focus on mouse down on the bar fixes #259 --- hyprbars/barDeco.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);