[fix] use SDL keyboard capture on Wayland only

This commit is contained in:
dijunkun
2026-04-21 17:37:19 +08:00
parent d3b886c3f6
commit 2be6e727ce
5 changed files with 19 additions and 160 deletions
+1 -2
View File
@@ -282,8 +282,6 @@ class Render {
std::shared_ptr<SubStreamWindowProperties>& props);
void DrawReceivingScreenText(
std::shared_ptr<SubStreamWindowProperties>& props);
void DrawRemoteUnlockStateText(
std::shared_ptr<SubStreamWindowProperties>& props);
void ResetRemoteServiceStatus(SubStreamWindowProperties& props);
void ApplyRemoteServiceStatus(SubStreamWindowProperties& props,
const ServiceStatus& status);
@@ -478,6 +476,7 @@ class Render {
bool start_keyboard_capturer_ = false;
bool show_cursor_ = false;
bool keyboard_capturer_is_started_ = false;
bool keyboard_capturer_uses_sdl_events_ = false;
bool foucs_on_main_window_ = false;
bool focus_on_stream_window_ = false;
bool main_window_minimized_ = false;