Skip to content

Commit f73e854

Browse files
committed
Only redraw on last expose event
1 parent 8f9bd87 commit f73e854

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

highlight-pointer.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ static void main_loop() {
374374
continue;
375375
}
376376
if (ev.type == Expose) {
377-
redraw();
377+
if (ev.xexpose.count < 1) {
378+
redraw();
379+
}
378380
continue;
379381
}
380382
if (ev.type == VisibilityNotify) {

0 commit comments

Comments
 (0)