diff options
Diffstat (limited to 'plugins/Scriver/src/chat_main.cpp')
-rw-r--r-- | plugins/Scriver/src/chat_main.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/plugins/Scriver/src/chat_main.cpp b/plugins/Scriver/src/chat_main.cpp index 6fdf6ac8bc..ddf786e469 100644 --- a/plugins/Scriver/src/chat_main.cpp +++ b/plugins/Scriver/src/chat_main.cpp @@ -44,16 +44,12 @@ static void OnFlashHighlight(SESSION_INFO *si, int bInactive) if (!bInactive || !si->pDlg)
return;
- if (g_Settings.bFlashWindowHighlight)
- SendMessage(GetParent(si->pDlg->GetHwnd()), CM_STARTFLASHING, 0, 0);
-
si->wState |= GC_EVENT_HIGHLIGHT;
si->pDlg->FixTabIcons();
si->pDlg->UpdateTitle();
- HWND hwndParent = GetParent(si->pDlg->GetHwnd());
- if (g_Settings.bFlashWindowHighlight && GetActiveWindow() != si->pDlg->GetHwnd() && GetForegroundWindow() != hwndParent)
- SendMessage(hwndParent, CM_STARTFLASHING, 0, 0);
+ if (g_Settings.bFlashWindowHighlight)
+ si->pDlg->StartFlashing();
}
static void OnFlashWindow(SESSION_INFO *si, int bInactive)
@@ -61,15 +57,11 @@ static void OnFlashWindow(SESSION_INFO *si, int bInactive) if (!bInactive || !si->pDlg)
return;
- if (g_Settings.bFlashWindow)
- SendMessage(GetParent(si->pDlg->GetHwnd()), CM_STARTFLASHING, 0, 0);
-
si->pDlg->FixTabIcons();
si->pDlg->UpdateTitle();
- HWND hwndParent = GetParent(si->pDlg->GetHwnd());
- if (g_Settings.bFlashWindow && GetActiveWindow() != hwndParent && GetForegroundWindow() != hwndParent)
- SendMessage(hwndParent, CM_STARTFLASHING, 0, 0);
+ if (g_Settings.bFlashWindow)
+ si->pDlg->StartFlashing();
}
static void OnDestroyModule(MODULEINFO *mi)
|