From da70bebdf1a200a09b031046aa5818512512d6f9 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 29 Oct 2023 23:26:50 +0000 Subject: [PATCH] hyprbars: don't allow move from clicking the border --- hyprbars/barDeco.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprbars/barDeco.cpp b/hyprbars/barDeco.cpp index 2bec925..6337c00 100644 --- a/hyprbars/barDeco.cpp +++ b/hyprbars/barDeco.cpp @@ -48,7 +48,7 @@ void CHyprBar::onMouseDown(SCallbackInfo& info, wlr_pointer_button_event* e) { static auto* const PHEIGHT = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprbars:bar_height")->intValue; const auto BORDERSIZE = m_pWindow->getRealBorderSize(); - if (!VECINRECT(COORDS, 0, 0, m_vLastWindowSize.x + BORDERSIZE * 2, *PHEIGHT + BORDERSIZE)) { + if (!VECINRECT(COORDS, 0, 0, m_vLastWindowSize.x + BORDERSIZE * 2, *PHEIGHT)) { if (m_bDraggingThis) { g_pKeybindManager->m_mDispatchers["mouse"]("0movewindow");