summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/TabSRMM/src/msgs.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 65a1adea23..1e37931afa 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -149,12 +149,15 @@ static INT_PTR SetStatusText(WPARAM wParam, LPARAM lParam)
DM_UpdateLastMessage(dat);
return 0;
}
-
+
_tcsncpy(dat->szStatusBar, (TCHAR *)lParam, SIZEOF(dat->szStatusBar));
+
+ if (pContainer->hwndActive != dat->hwnd)
+ return 1;
}
else {
SESSION_INFO *si = SM_FindSessionByHCONTACT((HANDLE)wParam);
- if (si == NULL || si->hWnd == 0 || (pContainer = si->pContainer) == NULL)
+ if (si == NULL || si->hWnd == 0 || (pContainer = si->pContainer) == NULL || pContainer->hwndActive != si->hWnd)
return 1;
}