From f174c7772c99b640143fb6063b3a89d294d2029c Mon Sep 17 00:00:00 2001 From: Yukino Song Date: Fri, 6 Jun 2025 16:51:23 +0800 Subject: [PATCH] Fix #813 --- src/process.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/process.h b/src/process.h index e876e13c..2f52d7ff 100644 --- a/src/process.h +++ b/src/process.h @@ -107,15 +107,14 @@ namespace proc { std::string display_name; std::string initial_display; std::string mode_changed_display; - bool initial_hdr; - bool virtual_display; - bool allow_client_commands; + bool initial_hdr = false; + bool virtual_display = false; + bool allow_client_commands = false; proc_t( boost::process::v1::environment &&env, std::vector &&apps ): - _app_id(0), _env(std::move(env)), _apps(std::move(apps)) { } @@ -142,7 +141,7 @@ namespace proc { void terminate(bool immediate = false, bool needs_refresh = true); private: - int _app_id; + int _app_id = 0; std::string _app_name; boost::process::v1::environment _env;