Skip to content

Commit

Permalink
Don't send empty events sets for touchpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
HildarTheDorf committed Jan 23, 2025
1 parent ab549b5 commit 92243fb
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions wayland/TouchPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ void TouchPoint::clear_events() {
}

void TouchPoint::send_events() {
if (_focus) {
_focus->touch_events(_id, _events);
}
if (!_events.empty()) {
if (_focus) {
_focus->touch_events(_id, _events);
}

clear_events();
clear_events();
}
}

0 comments on commit 92243fb

Please sign in to comment.