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
c339d721
Commit
c339d721
authored
Jun 08, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Properly clean up windows that aren't destroyed explicitly.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e6fdea72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
WineActivity.java
dlls/wineandroid.drv/WineActivity.java
+2
-0
window.c
dlls/wineandroid.drv/window.c
+3
-2
No files found.
dlls/wineandroid.drv/WineActivity.java
View file @
c339d721
...
...
@@ -314,7 +314,9 @@ public class WineActivity extends Activity
public
void
destroy
()
{
Log
.
i
(
LOGTAG
,
String
.
format
(
"destroy hwnd %08x"
,
hwnd
));
if
(
visible
&&
window_view
!=
null
)
top_view
.
removeView
(
window_view
);
visible
=
false
;
window_view
=
null
;
win_map
.
remove
(
this
);
}
...
...
dlls/wineandroid.drv/window.c
View file @
c339d721
...
...
@@ -828,8 +828,6 @@ BOOL CDECL ANDROID_CreateWindow( HWND hwnd )
init_event_queue
();
start_android_device
();
desktop_orig_wndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
hwnd
,
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wndproc_wrapper
);
if
(
!
(
data
=
alloc_win_data
(
hwnd
)))
return
FALSE
;
release_win_data
(
data
);
}
...
...
@@ -1214,6 +1212,9 @@ LRESULT CDECL ANDROID_WindowMessage( HWND hwnd, UINT msg, WPARAM wp, LPARAM lp )
*/
BOOL
CDECL
ANDROID_create_desktop
(
UINT
width
,
UINT
height
)
{
desktop_orig_wndproc
=
(
WNDPROC
)
SetWindowLongPtrW
(
GetDesktopWindow
(),
GWLP_WNDPROC
,
(
LONG_PTR
)
desktop_wndproc_wrapper
);
/* wait until we receive the surface changed event */
while
(
!
screen_width
)
{
...
...
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