mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-25 03:35:59 +01:00
hyprbars: end drag on out of bar
This commit is contained in:
parent
bb1437add2
commit
daab9e07e5
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,12 @@ void CHyprBar::onMouseDown(wlr_pointer_button_event* e) {
|
|||
static auto* const PHEIGHT = &HyprlandAPI::getConfigValue(PHANDLE, "plugin:hyprbars:bar_height")->intValue;
|
||||
|
||||
if (!VECINRECT(COORDS, 0, 0, m_vLastWindowSize.x, *PHEIGHT)) {
|
||||
|
||||
if (m_bDraggingThis) {
|
||||
g_pKeybindManager->m_mDispatchers["mouse"]("0movewindow");
|
||||
Debug::log(LOG, "[hyprbars] Dragging ended on %x", m_pWindow);
|
||||
}
|
||||
|
||||
m_bDraggingThis = false;
|
||||
m_bDragPending = false;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue