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
fc14753d
Commit
fc14753d
authored
Jul 04, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Wrap the desktop window procedure instead of replacing it.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3cd66cf7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
desktop.c
programs/explorer/desktop.c
+6
-4
No files found.
programs/explorer/desktop.c
View file @
fc14753d
...
...
@@ -599,6 +599,8 @@ static BOOL start_screensaver( void )
return
FALSE
;
}
static
WNDPROC
desktop_orig_wndproc
;
/* window procedure for the desktop window */
static
LRESULT
WINAPI
desktop_wnd_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wp
,
LPARAM
lp
)
{
...
...
@@ -660,10 +662,9 @@ static LRESULT WINAPI desktop_wnd_proc( HWND hwnd, UINT message, WPARAM wp, LPAR
EndPaint
(
hwnd
,
&
ps
);
}
return
0
;
default:
return
DefWindowProcW
(
hwnd
,
message
,
wp
,
lp
);
}
return
desktop_orig_wndproc
(
hwnd
,
message
,
wp
,
lp
);
}
/* create the desktop and the associated driver window, and make it the current desktop */
...
...
@@ -978,7 +979,8 @@ void manage_desktop( WCHAR *arg )
CreateWindowExW
(
0
,
messageW
,
NULL
,
WS_POPUP
|
WS_CLIPSIBLINGS
|
WS_CLIPCHILDREN
,
0
,
0
,
100
,
100
,
0
,
0
,
0
,
NULL
);
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wnd_proc
);
desktop_orig_wndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wnd_proc
);
using_root
=
!
desktop
||
!
create_desktop
(
graphics_driver
,
name
,
width
,
height
);
SendMessageW
(
hwnd
,
WM_SETICON
,
ICON_BIG
,
(
LPARAM
)
LoadIconW
(
0
,
MAKEINTRESOURCEW
(
OIC_WINLOGO
)));
if
(
name
)
set_desktop_window_title
(
hwnd
,
name
);
...
...
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