summaryrefslogtreecommitdiff
path: root/plugins/MagneticWindows
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MagneticWindows')
-rw-r--r--plugins/MagneticWindows/src/MagneticWindows.cpp5
-rw-r--r--plugins/MagneticWindows/src/SnapToListService.cpp2
2 files changed, 2 insertions, 5 deletions
diff --git a/plugins/MagneticWindows/src/MagneticWindows.cpp b/plugins/MagneticWindows/src/MagneticWindows.cpp
index ddb16b00b9..c8b23c3615 100644
--- a/plugins/MagneticWindows/src/MagneticWindows.cpp
+++ b/plugins/MagneticWindows/src/MagneticWindows.cpp
@@ -13,7 +13,6 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
CMPlugin g_plugin;
-CLIST_INTERFACE *pcli;
///////////////////////////////////////////////////////////////////////////////////////////////////
// Variables
@@ -92,7 +91,7 @@ int SnapPluginStart(WPARAM, LPARAM)
HookEvent(ME_MSG_WINDOWEVENT, PluginMessageWindowEvent);
- WindowOpen(pcli->hwndContactList);
+ WindowOpen(g_CLI.hwndContactList);
return 0;
}
@@ -109,8 +108,6 @@ int SnapPluginShutDown(WPARAM, LPARAM)
extern "C" int __declspec(dllexport) Load()
{
- pcli = Clist_GetInterface();
-
HookEvent(ME_SYSTEM_MODULESLOADED, SnapPluginStart);
HookEvent(ME_SYSTEM_PRESHUTDOWN, SnapPluginShutDown);
HookEvent(ME_OPT_INITIALISE, InitOptions);
diff --git a/plugins/MagneticWindows/src/SnapToListService.cpp b/plugins/MagneticWindows/src/SnapToListService.cpp
index 779e733827..143daf12df 100644
--- a/plugins/MagneticWindows/src/SnapToListService.cpp
+++ b/plugins/MagneticWindows/src/SnapToListService.cpp
@@ -3,7 +3,7 @@
INT_PTR SnapToList(WPARAM wParam, LPARAM Align)
{
HWND hWnd = (HWND)wParam;
- HWND hWndList = pcli->hwndContactList;
+ HWND hWndList = g_CLI.hwndContactList;
RECT WndRect, ListRect;
GetWindowRect(hWnd, &WndRect);