summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_tools.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-20 15:55:30 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-20 15:55:30 +0300
commit81c4c58099694dec4a7234b6c6028d478f08262f (patch)
tree877739ace95c6e05a7671e86ab34817c06006a7a /plugins/TabSRMM/src/chat_tools.cpp
parented3e48ddc7878f1ba5326088810bf8a45cdd06a6 (diff)
fixes #4686 (tabSRMM: group chat windows to use the same activation options like the private chats do)
Diffstat (limited to 'plugins/TabSRMM/src/chat_tools.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_tools.cpp15
1 files changed, 5 insertions, 10 deletions
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 {