From 637bc31135b378ea9521b5a93b14bdce482da209 Mon Sep 17 00:00:00 2001 From: marha Date: Thu, 9 Jun 2011 09:18:21 +0200 Subject: Also show the cursor in the main window when the xdmcp host selection dialog is shown. The cursor was not shown when the mouse was in the main window. Due to this it was hard to move the mouse into the host selection dialog box. --- xorg-server/hw/xwin/xdmcphostselect.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'xorg-server/hw/xwin') diff --git a/xorg-server/hw/xwin/xdmcphostselect.c b/xorg-server/hw/xwin/xdmcphostselect.c index 3196da4af..c58463fe7 100644 --- a/xorg-server/hw/xwin/xdmcphostselect.c +++ b/xorg-server/hw/xwin/xdmcphostselect.c @@ -71,15 +71,6 @@ static wBOOL CALLBACK DisplayXdmcpHostsDlgProc (HWND hwndDialog, UINT message, W return TRUE; } break; - case WM_MOUSEMOVE: - case WM_NCMOUSEMOVE: - /* Show the cursor if it is hidden */ - if (g_fSoftwareCursor && !g_fCursor) - { - g_fCursor = TRUE; - ShowCursor (TRUE); - } - return TRUE; case WM_COMMAND: switch (LOWORD (wParam)) @@ -167,6 +158,12 @@ void DisplayXdmcpHostsDialog(void) return; } + /* Show an arrow cursor as long as the selection dialog is shown */ + { + winScreenPriv(screenInfo.screens[0]); + pScreenPriv->cursor.handle=LoadCursor(NULL,IDC_ARROW); + } + /* * Display the about box */ -- cgit v1.2.3