Skip to content

Commit

Permalink
epd,wm: schedule a redraw on mouse clicks
Browse files Browse the repository at this point in the history
but not movement.

(maybe in the future we make updates more frequent
than 2hz when mouse is moving, but not 5m after.

say, change framerate to 10 hz when mouse is moving.)
  • Loading branch information
dj311 committed Aug 6, 2020
1 parent e15bc81 commit fbd950f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wm/seat.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ press_cursor_button(
if (view && !view_is_transient_for(current, view)) {
seat_set_focus(seat, view);
}

/* Schedule a redraw in 5 ms */
struct cg_output *output = server->output;
struct epd_output *epd_output =
epd_output_from_output(output->wlr_output);
wl_event_source_timer_update(epd_output->frame_timer, 5);
}
}

Expand Down

0 comments on commit fbd950f

Please sign in to comment.