aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Overlay.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index 61fa9c5..268e264 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -470,8 +470,6 @@ namespace gsr {
notification_process = -1;
}
- close_gpu_screen_recorder_output();
-
if(gpu_screen_recorder_process > 0) {
kill(gpu_screen_recorder_process, SIGINT);
int status;
@@ -482,6 +480,8 @@ namespace gsr {
gpu_screen_recorder_process = -1;
}
+ close_gpu_screen_recorder_output();
+
free(xi_input_xev);
free(xi_output_xev);
if(xi_display)