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
b34018db
Commit
b34018db
authored
May 20, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Implement DesktopWindowProc driver entry point.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fe52b067
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
gdi.c
dlls/winemac.drv/gdi.c
+1
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+1
-0
window.c
dlls/winemac.drv/window.c
+2
-7
No files found.
dlls/winemac.drv/gdi.c
View file @
b34018db
...
...
@@ -268,6 +268,7 @@ static const struct user_driver_funcs macdrv_funcs =
.
pClipCursor
=
macdrv_ClipCursor
,
.
pCreateDesktopWindow
=
macdrv_CreateDesktopWindow
,
.
pCreateWindow
=
macdrv_CreateWindow
,
.
pDesktopWindowProc
=
macdrv_DesktopWindowProc
,
.
pDestroyCursorIcon
=
macdrv_DestroyCursorIcon
,
.
pDestroyWindow
=
macdrv_DestroyWindow
,
.
pEnumDisplaySettingsEx
=
macdrv_EnumDisplaySettingsEx
,
...
...
dlls/winemac.drv/macdrv.h
View file @
b34018db
...
...
@@ -137,6 +137,7 @@ extern BOOL macdrv_SetDeviceGammaRamp(PHYSDEV dev, LPVOID ramp) DECLSPEC_HIDDEN;
extern
BOOL
macdrv_ClipCursor
(
LPCRECT
clip
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_CreateDesktopWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
macdrv_CreateWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
LRESULT
macdrv_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetFocus
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_SetLayeredWindowAttributes
(
HWND
hwnd
,
COLORREF
key
,
BYTE
alpha
,
...
...
dlls/winemac.drv/window.c
View file @
b34018db
...
...
@@ -1557,11 +1557,9 @@ BOOL macdrv_CreateDesktopWindow(HWND hwnd)
}
static
WNDPROC
desktop_orig_wndproc
;
#define WM_WINE_NOTIFY_ACTIVITY WM_USER
static
LRESULT
CALLBACK
desktop_wndproc_wrapper
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
LRESULT
macdrv_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
switch
(
msg
)
{
...
...
@@ -1580,7 +1578,7 @@ static LRESULT CALLBACK desktop_wndproc_wrapper( HWND hwnd, UINT msg, WPARAM wp,
break
;
}
}
return
desktop_orig_wndproc
(
hwnd
,
msg
,
wp
,
lp
);
return
NtUserMessageCall
(
hwnd
,
msg
,
wp
,
lp
,
0
,
NtUserDefWindowProc
,
FALSE
);
}
/**********************************************************************
...
...
@@ -1590,9 +1588,6 @@ BOOL macdrv_CreateWindow(HWND hwnd)
{
if
(
hwnd
==
GetDesktopWindow
())
{
desktop_orig_wndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
GetDesktopWindow
(),
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wndproc_wrapper
);
macdrv_init_clipboard
();
}
return
TRUE
;
...
...
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