aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-09-14 01:57:00 +0200
committerdec05eba <dec05eba@protonmail.com>2024-09-14 02:27:48 +0200
commit714561987e264c5f3e9fb01d9ebbf545225b35b7 (patch)
tree94fc3c271516b873d2f0b3c463fa81c590e849bd /src/main.cpp
parent8acb34638212ab8dba0d48a57dd40721203a7a44 (diff)
Properly damage if moving cursor
Only damage if cursor is inside the target area
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2cefd0a..2c302ab 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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) {