Removed DummyMotionNotify EVENT driver routine.
This commit is contained in:
parent
5a70c97a69
commit
153334e50a
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -42,7 +42,6 @@ EVENT_DRIVER TTYDRV_EVENT_Driver =
|
|||
TTYDRV_EVENT_Synchronize,
|
||||
TTYDRV_EVENT_CheckFocus,
|
||||
TTYDRV_EVENT_QueryPointer,
|
||||
TTYDRV_EVENT_DummyMotionNotify,
|
||||
TTYDRV_EVENT_UserRepaintDisable
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -46,7 +46,6 @@ EVENT_DRIVER X11DRV_EVENT_Driver =
|
|||
X11DRV_EVENT_Synchronize,
|
||||
X11DRV_EVENT_CheckFocus,
|
||||
X11DRV_EVENT_QueryPointer,
|
||||
X11DRV_EVENT_DummyMotionNotify,
|
||||
X11DRV_EVENT_UserRepaintDisable
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue