From 76cb1ae4c9624901458aaeb3243725d74fa9233f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Jan 2017 20:12:23 +0300 Subject: ME_IDLE_CHANGED to be hooked afterwards --- src/core/stdautoaway/src/autoaway.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/core/stdautoaway') diff --git a/src/core/stdautoaway/src/autoaway.cpp b/src/core/stdautoaway/src/autoaway.cpp index 4014379d9f..22196ff358 100644 --- a/src/core/stdautoaway/src/autoaway.cpp +++ b/src/core/stdautoaway/src/autoaway.cpp @@ -97,9 +97,15 @@ static int AutoAwayEvent(WPARAM, LPARAM lParam) return 0; } +static int OnModulesLoaded(WPARAM, LPARAM) +{ + HookEvent(ME_IDLE_CHANGED, AutoAwayEvent); + return 0; +} + int LoadAutoAwayModule() { + HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); HookEvent(ME_SKIN_PLAYINGSOUND, AutoAwaySound); - HookEvent(ME_IDLE_CHANGED, AutoAwayEvent); return 0; } -- cgit v1.2.3