Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
d05f4f58
Commit
d05f4f58
authored
Jun 01, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Notify Java also when a window is forcefully destroyed.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
347699d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
window.c
dlls/wineandroid.drv/window.c
+16
-1
No files found.
dlls/wineandroid.drv/window.c
View file @
d05f4f58
...
@@ -305,6 +305,20 @@ static int wait_events( int timeout )
...
@@ -305,6 +305,20 @@ static int wait_events( int timeout )
}
}
static
WNDPROC
desktop_orig_wndproc
;
static
LRESULT
CALLBACK
desktop_wndproc_wrapper
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wp
,
LPARAM
lp
)
{
switch
(
msg
)
{
case
WM_PARENTNOTIFY
:
if
(
LOWORD
(
wp
)
==
WM_DESTROY
)
destroy_ioctl_window
(
(
HWND
)
lp
);
break
;
}
return
desktop_orig_wndproc
(
hwnd
,
msg
,
wp
,
lp
);
}
/***********************************************************************
/***********************************************************************
* ANDROID_MsgWaitForMultipleObjectsEx
* ANDROID_MsgWaitForMultipleObjectsEx
*/
*/
...
@@ -334,7 +348,8 @@ BOOL CDECL ANDROID_CreateWindow( HWND hwnd )
...
@@ -334,7 +348,8 @@ BOOL CDECL ANDROID_CreateWindow( HWND hwnd )
init_event_queue
();
init_event_queue
();
start_android_device
();
start_android_device
();
desktop_orig_wndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wndproc_wrapper
);
if
(
!
(
data
=
alloc_win_data
(
hwnd
)))
return
FALSE
;
if
(
!
(
data
=
alloc_win_data
(
hwnd
)))
return
FALSE
;
release_win_data
(
data
);
release_win_data
(
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