[fix] fix wheel event grabbing

This commit is contained in:
dijunkun
2025-04-15 17:32:23 +08:00
parent 662cbbc3cc
commit 536fe17055
2 changed files with 110 additions and 107 deletions

View File

@@ -308,6 +308,7 @@ class Render {
int original_display_width_ = 0;
int original_display_height_ = 0;
bool hostname_sent_ = false;
SDL_Event last_mouse_event;
// stream window render
SDL_Window *stream_window_ = nullptr;
@@ -391,9 +392,6 @@ class Render {
std::unordered_map<std::string, std::shared_ptr<SubStreamWindowProperties>>
client_properties_;
/* ------ stream window property end ------ */
std::unordered_map<std::string, std::shared_ptr<SubStreamWindowProperties>>
server_properties_;
};
#endif