mirror of
https://repo.dec05eba.com/gpu-screen-recorder
synced 2026-03-31 17:17:16 +09:00
Properly damage if moving cursor
Only damage if cursor is inside the target area
This commit is contained in:
@@ -3318,10 +3318,11 @@ int main(int argc, char **argv) {
|
||||
while(running) {
|
||||
const double frame_start = clock_get_monotonic_seconds();
|
||||
|
||||
while(gsr_egl_update(&egl)) {
|
||||
while(gsr_egl_process_event(&egl)) {
|
||||
gsr_capture_on_event(capture, &egl);
|
||||
gsr_damage_update(&damage, gsr_egl_get_event_data(&egl));
|
||||
gsr_damage_on_event(&damage, gsr_egl_get_event_data(&egl));
|
||||
}
|
||||
gsr_damage_tick(&damage);
|
||||
gsr_capture_tick(capture, video_codec_context);
|
||||
|
||||
if(!is_monitor_capture) {
|
||||
|
||||
Reference in New Issue
Block a user