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
6a4ff4de
Commit
6a4ff4de
authored
May 19, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
May 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Implement DesktopWindowProc driver entry point.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
dfeb2d24
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
init.c
dlls/winex11.drv/init.c
+1
-0
window.c
dlls/winex11.drv/window.c
+5
-7
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
No files found.
dlls/winex11.drv/init.c
View file @
6a4ff4de
...
@@ -408,6 +408,7 @@ static const struct user_driver_funcs x11drv_funcs =
...
@@ -408,6 +408,7 @@ static const struct user_driver_funcs x11drv_funcs =
.
pUpdateDisplayDevices
=
X11DRV_UpdateDisplayDevices
,
.
pUpdateDisplayDevices
=
X11DRV_UpdateDisplayDevices
,
.
pCreateDesktopWindow
=
X11DRV_CreateDesktopWindow
,
.
pCreateDesktopWindow
=
X11DRV_CreateDesktopWindow
,
.
pCreateWindow
=
X11DRV_CreateWindow
,
.
pCreateWindow
=
X11DRV_CreateWindow
,
.
pDesktopWindowProc
=
X11DRV_DesktopWindowProc
,
.
pDestroyWindow
=
X11DRV_DestroyWindow
,
.
pDestroyWindow
=
X11DRV_DestroyWindow
,
.
pFlashWindowEx
=
X11DRV_FlashWindowEx
,
.
pFlashWindowEx
=
X11DRV_FlashWindowEx
,
.
pGetDC
=
X11DRV_GetDC
,
.
pGetDC
=
X11DRV_GetDC
,
...
...
dlls/winex11.drv/window.c
View file @
6a4ff4de
...
@@ -1860,13 +1860,14 @@ BOOL X11DRV_CreateDesktopWindow( HWND hwnd )
...
@@ -1860,13 +1860,14 @@ BOOL X11DRV_CreateDesktopWindow( HWND hwnd )
}
}
static
WNDPROC
desktop_orig_wndproc
;
#define WM_WINE_NOTIFY_ACTIVITY WM_USER
#define WM_WINE_NOTIFY_ACTIVITY WM_USER
#define WM_WINE_DELETE_TAB (WM_USER + 1)
#define WM_WINE_DELETE_TAB (WM_USER + 1)
#define WM_WINE_ADD_TAB (WM_USER + 2)
#define WM_WINE_ADD_TAB (WM_USER + 2)
static
LRESULT
CALLBACK
desktop_wndproc_wrapper
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
/**********************************************************************
* DesktopWindowProc (X11DRV.@)
*/
LRESULT
X11DRV_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
{
switch
(
msg
)
switch
(
msg
)
{
{
...
@@ -1891,7 +1892,7 @@ static LRESULT CALLBACK desktop_wndproc_wrapper( HWND hwnd, UINT msg, WPARAM wp,
...
@@ -1891,7 +1892,7 @@ static LRESULT CALLBACK desktop_wndproc_wrapper( HWND hwnd, UINT msg, WPARAM wp,
send_notify_message
(
(
HWND
)
wp
,
WM_X11DRV_ADD_TAB
,
0
,
0
);
send_notify_message
(
(
HWND
)
wp
,
WM_X11DRV_ADD_TAB
,
0
,
0
);
break
;
break
;
}
}
return
desktop_orig_wndproc
(
hwnd
,
msg
,
wp
,
lp
);
return
NtUserMessageCall
(
hwnd
,
msg
,
wp
,
lp
,
0
,
NtUserDefWindowProc
,
FALSE
);
}
}
/**********************************************************************
/**********************************************************************
...
@@ -1904,9 +1905,6 @@ BOOL X11DRV_CreateWindow( HWND hwnd )
...
@@ -1904,9 +1905,6 @@ BOOL X11DRV_CreateWindow( HWND hwnd )
struct
x11drv_thread_data
*
data
=
x11drv_init_thread_data
();
struct
x11drv_thread_data
*
data
=
x11drv_init_thread_data
();
XSetWindowAttributes
attr
;
XSetWindowAttributes
attr
;
desktop_orig_wndproc
=
(
WNDPROC
)
NtUserSetWindowLongPtr
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wndproc_wrapper
,
FALSE
);
/* create the cursor clipping window */
/* create the cursor clipping window */
attr
.
override_redirect
=
TRUE
;
attr
.
override_redirect
=
TRUE
;
attr
.
event_mask
=
StructureNotifyMask
|
FocusChangeMask
;
attr
.
event_mask
=
StructureNotifyMask
|
FocusChangeMask
;
...
...
dlls/winex11.drv/x11drv.h
View file @
6a4ff4de
...
@@ -218,6 +218,7 @@ extern void X11DRV_UpdateDisplayDevices( const struct gdi_device_manager *device
...
@@ -218,6 +218,7 @@ extern void X11DRV_UpdateDisplayDevices( const struct gdi_device_manager *device
BOOL
force
,
void
*
param
)
DECLSPEC_HIDDEN
;
BOOL
force
,
void
*
param
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_CreateDesktopWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_CreateDesktopWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_CreateWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_CreateWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
LRESULT
X11DRV_DesktopWindowProc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_DestroyWindow
(
HWND
hwnd
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_FlashWindowEx
(
PFLASHWINFO
pfinfo
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_FlashWindowEx
(
PFLASHWINFO
pfinfo
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_GetDC
(
HDC
hdc
,
HWND
hwnd
,
HWND
top
,
const
RECT
*
win_rect
,
extern
void
X11DRV_GetDC
(
HDC
hdc
,
HWND
hwnd
,
HWND
top
,
const
RECT
*
win_rect
,
...
...
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