mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-12-22 23:09:49 +01:00
hyprbars: minor drag fixes
This commit is contained in:
parent
1a90265ff7
commit
21c277c2f2
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue