Merge pull request #5058 from typedrifter/fix-cursor-crash

fix(amodule): prevent crash when cursor timeout fires after destruction
This commit is contained in:
Alexis Rouillard
2026-07-03 19:54:25 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+1
View File
@@ -63,6 +63,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"},