summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/container.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/container.cpp')
-rw-r--r--plugins/TabSRMM/src/container.cpp18
1 files changed, 5 insertions, 13 deletions
diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp
index 5fe3659af7..c4614cd6ec 100644
--- a/plugins/TabSRMM/src/container.cpp
+++ b/plugins/TabSRMM/src/container.cpp
@@ -98,19 +98,11 @@ void TSAPI SetAeroMargins(TContainerData *pContainer)
if (!dat)
return;
- RECT rcWnd;
- if (!dat->isChat()) {
- if (dat->m_pPanel.isActive())
- GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd);
- else
- GetWindowRect(dat->GetHwnd(), &rcWnd);
- }
- else {
- if (dat->m_pPanel.isActive())
- GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd);
- else
- GetWindowRect(dat->GetHwnd(), &rcWnd);
- }
+ RECT rcWnd;
+ if (dat->m_pPanel.isActive())
+ GetWindowRect(GetDlgItem(dat->GetHwnd(), IDC_LOG), &rcWnd);
+ else
+ GetWindowRect(dat->GetHwnd(), &rcWnd);
POINT pt = { rcWnd.left, rcWnd.top };
ScreenToClient(pContainer->hwnd, &pt);