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
c3f2a140
Commit
c3f2a140
authored
Aug 27, 2001
by
Jukka Heinonen
Committed by
Alexandre Julliard
Aug 27, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GrabPointer uses now SetWindowLong to change window procedure instead
of accessing directly WND structure.
parent
f2e7ce7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
x11ddraw.c
dlls/x11drv/x11ddraw.c
+6
-19
No files found.
dlls/x11drv/x11ddraw.c
View file @
c3f2a140
...
...
@@ -78,8 +78,6 @@ static LRESULT WINAPI GrabWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM
static
void
GrabPointer
(
BOOL
grab
)
{
WND
*
pWnd
;
if
(
grab
)
{
Window
window
=
X11DRV_get_whole_window
(
GetFocus
());
if
(
window
)
...
...
@@ -89,27 +87,16 @@ static void GrabPointer(BOOL grab)
if
(
!
X11DRV_DD_GrabMessage
)
X11DRV_DD_GrabMessage
=
RegisterWindowMessageA
(
"WINE_X11DRV_GRABPOINTER"
);
pWnd
=
WIN_FindWndPtr
(
X11DRV_DD_PrimaryWnd
);
if
(
!
pWnd
)
return
;
X11DRV_DD_GrabOldProcedure
=
pWnd
->
winproc
;
pWnd
->
winproc
=
GrabWndProc
;
WIN_ReleaseWndPtr
(
pWnd
);
/* FIXME: Replace with SetWindowLongPtrA when available */
X11DRV_DD_GrabOldProcedure
=
(
WNDPROC
)
SetWindowLongA
(
X11DRV_DD_PrimaryWnd
,
GWL_WNDPROC
,
(
LONG
)
GrabWndProc
);
SendMessageA
(
X11DRV_DD_PrimaryWnd
,
X11DRV_DD_GrabMessage
,
grab
?
1
:
0
,
0
);
pWnd
=
WIN_FindWndPtr
(
X11DRV_DD_PrimaryWnd
);
if
(
!
pWnd
)
return
;
if
(
pWnd
->
winproc
!=
GrabWndProc
)
/* FIXME: Replace with SetWindowLongPtrA when available */
if
(
SetWindowLongA
(
X11DRV_DD_PrimaryWnd
,
GWL_WNDPROC
,
(
LONG
)
X11DRV_DD_GrabOldProcedure
)
!=
(
LONG
)
GrabWndProc
)
ERR
(
"Window procedure has been changed!
\n
"
);
else
pWnd
->
winproc
=
X11DRV_DD_GrabOldProcedure
;
WIN_ReleaseWndPtr
(
pWnd
);
}
static
DWORD
PASCAL
X11DRV_DDHAL_DestroyDriver
(
LPDDHAL_DESTROYDRIVERDATA
data
)
...
...
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