aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-01-21 13:43:50 +0000
committermarha <marha@users.sourceforge.net>2011-01-21 13:43:50 +0000
commit58eb5cd6de079f1f3ddf1edc2d436a24eb858dc2 (patch)
treed4bd5a4964f5aab5a2314078feb7aa5d821f1a2d /xorg-server/hw
parent7719409ebcf17c5288114dee8f60cc9ff889fd3e (diff)
downloadvcxsrv-58eb5cd6de079f1f3ddf1edc2d436a24eb858dc2.tar.gz
vcxsrv-58eb5cd6de079f1f3ddf1edc2d436a24eb858dc2.tar.bz2
vcxsrv-58eb5cd6de079f1f3ddf1edc2d436a24eb858dc2.zip
resize was not working when window was maximised.
change some error messages to debug messages
Diffstat (limited to 'xorg-server/hw')
-rw-r--r--xorg-server/hw/xwin/winwndproc.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/xorg-server/hw/xwin/winwndproc.c b/xorg-server/hw/xwin/winwndproc.c
index 5bd85a104..97a8f854f 100644
--- a/xorg-server/hw/xwin/winwndproc.c
+++ b/xorg-server/hw/xwin/winwndproc.c
@@ -322,6 +322,14 @@ winWindowProc (HWND hwnd, UINT message,
}
break;
+
+ case WM_SYSCOMMAND:
+ if (wParam == SC_MAXIMIZE||wParam == SC_RESTORE)
+ {
+ winDebug("Posting WM_EXITSIZEMOVE message since windows does not send it when the maximised/restored button is clicked.\n");
+ PostMessage(hwnd, WM_EXITSIZEMOVE, 0, 0);
+ }
+ break;
case WM_SIZE:
{
@@ -348,7 +356,7 @@ winWindowProc (HWND hwnd, UINT message,
if (wParam == SIZE_MINIMIZED)
return 0;
- ErrorF ("winWindowProc - WM_SIZE - new client area w: %d h: %d\n",
+ winDebug ("winWindowProc - WM_SIZE - new client area w: %d h: %d\n",
LOWORD (lParam), HIWORD (lParam));
if (s_pScreenInfo->iResizeMode == resizeWithRandr)
@@ -430,13 +438,13 @@ winWindowProc (HWND hwnd, UINT message,
s_pScreenInfo->dwYOffset = -si.nPos;
}
return 0;
-
+
case WM_ENTERSIZEMOVE:
- ErrorF("winWindowProc - WM_ENTERSIZEMOVE\n");
+ winDebug("winWindowProc - WM_ENTERSIZEMOVE\n");
break;
case WM_EXITSIZEMOVE:
- ErrorF("winWindowProc - WM_EXITSIZEMOVE\n");
+ winDebug("winWindowProc - WM_EXITSIZEMOVE\n");
if (s_pScreenInfo->iResizeMode == resizeWithRandr)
{