hyprbars: minor drag fixes

This commit is contained in:
vaxerski 2023-03-16 15:58:46 +00:00
parent 1a90265ff7
commit 21c277c2f2
1 changed files with 4 additions and 0 deletions

View File

@ -79,6 +79,10 @@ void CHyprBar::onMouseDown(wlr_pointer_button_event* e) {
// if we call da dispatcher here the handler later will remove our mouse bind
if (VECINRECT(COORDS, 0, 0, m_vLastWindowSize.x, *PHEIGHT))
m_bDragPending = true;
else {
m_bDraggingThis = false;
m_bDragPending = false;
}
}
void CHyprBar::onMouseMove(Vector2D coords) {