Skip to content

Commit

Permalink
Only redraw on last expose event
Browse files Browse the repository at this point in the history
  • Loading branch information
swillner committed May 27, 2021
1 parent 8f9bd87 commit f73e854
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion highlight-pointer.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,9 @@ static void main_loop() {
continue;
}
if (ev.type == Expose) {
redraw();
if (ev.xexpose.count < 1) {
redraw();
}
continue;
}
if (ev.type == VisibilityNotify) {
Expand Down

0 comments on commit f73e854

Please sign in to comment.