Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7d7fe7c1
Commit
7d7fe7c1
authored
Apr 03, 1999
by
Francois Boisvert
Committed by
Alexandre Julliard
Apr 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suspend the window locks before DefKeybEventProc and
DefMouseEventProc.
parent
8de3ba8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
keyboard.c
windows/keyboard.c
+5
-0
mouse.c
windows/mouse.c
+5
-0
No files found.
windows/keyboard.c
View file @
7d7fe7c1
...
@@ -79,6 +79,7 @@ void KEYBOARD_SendEvent( BYTE bVk, BYTE bScan, DWORD dwFlags,
...
@@ -79,6 +79,7 @@ void KEYBOARD_SendEvent( BYTE bVk, BYTE bScan, DWORD dwFlags,
DWORD
posX
,
DWORD
posY
,
DWORD
time
)
DWORD
posX
,
DWORD
posY
,
DWORD
time
)
{
{
WINE_KEYBDEVENT
wke
;
WINE_KEYBDEVENT
wke
;
int
iWndsLocks
;
if
(
!
DefKeybEventProc
)
return
;
if
(
!
DefKeybEventProc
)
return
;
...
@@ -89,7 +90,11 @@ void KEYBOARD_SendEvent( BYTE bVk, BYTE bScan, DWORD dwFlags,
...
@@ -89,7 +90,11 @@ void KEYBOARD_SendEvent( BYTE bVk, BYTE bScan, DWORD dwFlags,
wke
.
posY
=
posY
;
wke
.
posY
=
posY
;
wke
.
time
=
time
;
wke
.
time
=
time
;
/* To avoid deadlocks, we have to suspend all locks on windows structures
before the program control is passed to the keyboard driver */
iWndsLocks
=
WIN_SuspendWndsLock
();
DefKeybEventProc
(
bVk
,
bScan
,
dwFlags
,
(
DWORD
)
&
wke
);
DefKeybEventProc
(
bVk
,
bScan
,
dwFlags
,
(
DWORD
)
&
wke
);
WIN_RestoreWndsLock
(
iWndsLocks
);
}
}
/**********************************************************************
/**********************************************************************
...
...
windows/mouse.c
View file @
7d7fe7c1
...
@@ -58,6 +58,7 @@ void MOUSE_SendEvent( DWORD mouseStatus, DWORD posX, DWORD posY,
...
@@ -58,6 +58,7 @@ void MOUSE_SendEvent( DWORD mouseStatus, DWORD posX, DWORD posY,
{
{
int
width
=
MONITOR_GetWidth
(
&
MONITOR_PrimaryMonitor
);
int
width
=
MONITOR_GetWidth
(
&
MONITOR_PrimaryMonitor
);
int
height
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
);
int
height
=
MONITOR_GetHeight
(
&
MONITOR_PrimaryMonitor
);
int
iWndsLocks
;
WINE_MOUSEEVENT
wme
;
WINE_MOUSEEVENT
wme
;
BOOL
bOldWarpPointer
;
BOOL
bOldWarpPointer
;
...
@@ -75,6 +76,10 @@ void MOUSE_SendEvent( DWORD mouseStatus, DWORD posX, DWORD posY,
...
@@ -75,6 +76,10 @@ void MOUSE_SendEvent( DWORD mouseStatus, DWORD posX, DWORD posY,
wme
.
hWnd
=
hWnd
;
wme
.
hWnd
=
hWnd
;
bOldWarpPointer
=
MOUSE_Driver
->
pEnableWarpPointer
(
FALSE
);
bOldWarpPointer
=
MOUSE_Driver
->
pEnableWarpPointer
(
FALSE
);
/* To avoid deadlocks, we have to suspend all locks on windows structures
before the program control is passed to the mouse driver */
iWndsLocks
=
WIN_SuspendWndsLock
();
DefMouseEventProc
(
mouseStatus
,
posX
,
posY
,
0
,
(
DWORD
)
&
wme
);
DefMouseEventProc
(
mouseStatus
,
posX
,
posY
,
0
,
(
DWORD
)
&
wme
);
WIN_RestoreWndsLock
(
iWndsLocks
);
MOUSE_Driver
->
pEnableWarpPointer
(
bOldWarpPointer
);
MOUSE_Driver
->
pEnableWarpPointer
(
bOldWarpPointer
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment