Index: Daodan/src/Daodan_WindowHack.c
===================================================================
--- Daodan/src/Daodan_WindowHack.c	(revision 352)
+++ Daodan/src/Daodan_WindowHack.c	(revision 354)
@@ -9,4 +9,5 @@
 volatile HWND onihwnd, boxhwnd = NULL;
 int inclient = 0;
+int dragging = 0;
 
 LRESULT CALLBACK DDrHack_WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
@@ -41,4 +42,10 @@
 			PostQuitMessage(0);
 			ExitProcess(0);
+			break;
+		case WM_ENTERSIZEMOVE:
+			dragging = 1;
+			break;
+		case WM_EXITSIZEMOVE:
+			dragging = 0;
 			break;
 		default:
@@ -117,5 +124,5 @@
 BOOL WINAPI LIiP_GetCursorPosHook(LPPOINT lpPoint)
 {
-	if (GetAsyncKeyState(VK_F4))
+	if (GetAsyncKeyState(VK_F4) || dragging)
 	{
 		lpPoint->x = gl->DisplayMode.Width / 2;
@@ -134,5 +141,5 @@
 BOOL WINAPI LIiP_SetCursorPosHook(int X, int Y)
 {
-	if (GetAsyncKeyState(VK_F4))
+	if (GetAsyncKeyState(VK_F4) || dragging)
 		return TRUE;
 	else
