fix(amodule): prevent crash when cursor timeout fires after destruction

This commit is contained in:
Francois Lachese
2026-05-20 15:57:38 +02:00
parent 05945748dc
commit 876eaaf70f
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -57,6 +57,7 @@ class AModule : public IModule {
bool hasUserEvents_;
gdouble distance_scrolled_y_;
gdouble distance_scrolled_x_;
sigc::connection cursor_timeout_conn_;
std::map<std::string, std::string> eventActionMap_;
static const inline std::map<std::pair<uint, GdkEventType>, std::string> eventMap_{
{std::make_pair(1, GdkEventType::GDK_BUTTON_PRESS), "on-click"},