From 81c4c58099694dec4a7234b6c6028d478f08262f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 20 Sep 2024 15:55:30 +0300 Subject: fixes #4686 (tabSRMM: group chat windows to use the same activation options like the private chats do) --- plugins/TabSRMM/src/chat_tools.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'plugins/TabSRMM/src/chat_tools.cpp') diff --git a/plugins/TabSRMM/src/chat_tools.cpp b/plugins/TabSRMM/src/chat_tools.cpp index 6794116bda..e09c6ff4a0 100644 --- a/plugins/TabSRMM/src/chat_tools.cpp +++ b/plugins/TabSRMM/src/chat_tools.cpp @@ -223,17 +223,12 @@ BOOL DoSoundsFlashPopupTrayStuff(SESSION_INFO *si, GCEVENT *gce, BOOL bHighlight if (Chat::bFlashWindowHighlight && bInactive) bMustFlash = true; - bMustAutoswitch = true; + bMustAutoswitch = g_plugin.bAutoSwitchTabs; if (g_plugin.bCreateWindowOnHighlight && dat == nullptr) { - Clist_ContactDoubleClicked(si->hContact); - bActiveTab = true; - bInactive = bMustAutoswitch = bMustFlash = false; - } - - if (dat && g_plugin.bAnnoyingHighlight && bInactive && dat->m_pContainer->m_hwnd != GetForegroundWindow()) { - bActiveTab = true; - bInactive = bMustAutoswitch = bMustFlash = false; - dat->ActivateTab(); + ShowRoom(0, si); + dat = si->pDlg; + bInactive = (dat) ? !dat->IsActive() : true; + bMustFlash = false; } } else { -- cgit v1.2.3