Removed DummyMotionNotify EVENT driver routine.

This commit is contained in:
Ulrich Weigand 1999-06-05 09:02:11 +00:00 committed by Alexandre Julliard
parent 5a70c97a69
commit 153334e50a
9 changed files with 14 additions and 40 deletions

View File

@ -30,7 +30,6 @@ typedef struct tagEVENT_DRIVER {
void (*pSynchronize)(BOOL);
BOOL (*pCheckFocus)(void);
BOOL (*pQueryPointer)(DWORD *, DWORD *, DWORD *);
void (*pDummyMotionNotify)(void);
void (*pUserRepaintDisable)(BOOL);
} EVENT_DRIVER;
@ -40,7 +39,6 @@ extern BOOL EVENT_Init( void );
extern void EVENT_Synchronize( BOOL bProcessEvents );
extern BOOL EVENT_CheckFocus( void );
extern BOOL EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
extern void EVENT_DummyMotionNotify(void);
/* input.c */

View File

@ -94,7 +94,6 @@ extern BOOL TTYDRV_EVENT_Init(void);
extern void TTYDRV_EVENT_Synchronize(BOOL bProcessEvents);
extern BOOL TTYDRV_EVENT_CheckFocus(void);
extern BOOL TTYDRV_EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
extern void TTYDRV_EVENT_DummyMotionNotify(void);
extern void TTYDRV_EVENT_UserRepaintDisable(BOOL bDisable);
/* TTY keyboard driver */

View File

@ -345,7 +345,6 @@ extern BOOL X11DRV_EVENT_Init(void);
extern void X11DRV_EVENT_Synchronize( BOOL bProcessEvents );
extern BOOL X11DRV_EVENT_CheckFocus( void );
extern BOOL X11DRV_EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state);
extern void X11DRV_EVENT_DummyMotionNotify(void);
extern void X11DRV_EVENT_UserRepaintDisable( BOOL bDisable );
/* X11 keyboard driver */

View File

@ -50,13 +50,4 @@ BOOL EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state)
return EVENT_Driver->pQueryPointer(posX, posY, state);
}
/***********************************************************************
* EVENT_DummyMotionNotify
*
* Generate a dummy MotionNotify event. Used to force a WM_SETCURSOR message.
*/
void EVENT_DummyMotionNotify(void)
{
EVENT_Driver->pDummyMotionNotify();
}

View File

@ -46,13 +46,6 @@ BOOL TTYDRV_EVENT_QueryPointer(DWORD *posX, DWORD *posY, DWORD *state)
return TRUE;
}
/***********************************************************************
* TTYDRV_EVENT_DummyMotionNotify
*/
void TTYDRV_EVENT_DummyMotionNotify(void)
{
}
/***********************************************************************
* TTYDRV_EVENT_UserRepaintDisable
*/

View File

@ -42,7 +42,6 @@ EVENT_DRIVER TTYDRV_EVENT_Driver =
TTYDRV_EVENT_Synchronize,
TTYDRV_EVENT_CheckFocus,
TTYDRV_EVENT_QueryPointer,
TTYDRV_EVENT_DummyMotionNotify,
TTYDRV_EVENT_UserRepaintDisable
};

View File

@ -2764,7 +2764,20 @@ Pos: /* -----------------------------------------------------------------------
EVENT_Synchronize( TRUE ); /* Synchronize with the host window system */
if (!GetCapture() && ((wndPtr->dwStyle & WS_VISIBLE) || (flags & SWP_HIDEWINDOW)))
EVENT_DummyMotionNotify(); /* Simulate a mouse event to set the cursor */
{
/* Simulate a mouse event to set the cursor */
DWORD posX, posY, keyState;
if ( EVENT_QueryPointer( &posX, &posY, &keyState ) )
{
int iWndsLocks = WIN_SuspendWndsLock();
hardware_event( WM_MOUSEMOVE, keyState, 0,
posX, posY, GetTickCount(), 0 );
WIN_RestoreWndsLock(iWndsLocks);
}
}
wndTemp = WIN_GetDesktop();

View File

@ -564,23 +564,6 @@ static void EVENT_MotionNotify( HWND hWnd, XMotionEvent *event )
}
/***********************************************************************
* X11DRV_EVENT_DummyMotionNotify
*
* Generate a dummy MotionNotify event. Used to force a WM_SETCURSOR message.
*/
void X11DRV_EVENT_DummyMotionNotify(void)
{
DWORD winX, winY, state;
if ( EVENT_QueryPointer( &winX, &winY, &state ) )
{
MOUSE_SendEvent( MOUSEEVENTF_MOVE, winX, winY, state,
GetTickCount(), 0 );
}
}
/***********************************************************************
* EVENT_ButtonPress
*/

View File

@ -46,7 +46,6 @@ EVENT_DRIVER X11DRV_EVENT_Driver =
X11DRV_EVENT_Synchronize,
X11DRV_EVENT_CheckFocus,
X11DRV_EVENT_QueryPointer,
X11DRV_EVENT_DummyMotionNotify,
X11DRV_EVENT_UserRepaintDisable
};