From 28c437e90a3ad4660f44da8b8bf07008032d2bba Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 27 Oct 2024 02:00:09 +0200 Subject: Only have one notification process open at a time (kill previous one when showing new) --- include/Overlay.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/Overlay.hpp b/include/Overlay.hpp index fa6630d..e693764 100644 --- a/include/Overlay.hpp +++ b/include/Overlay.hpp @@ -50,6 +50,7 @@ namespace gsr { private: void process_key_bindings(mgl::Event &event); + void update_notification_process_status(); void update_gsr_process_status(); void update_ui_recording_paused(); @@ -90,6 +91,7 @@ namespace gsr { bool visible = false; uint64_t default_cursor = 0; pid_t gpu_screen_recorder_process = -1; + pid_t notification_process = -1; std::optional config; DropdownButton *replay_dropdown_button_ptr = nullptr; DropdownButton *record_dropdown_button_ptr = nullptr; -- cgit v1.2.3