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
240edd3f
Commit
240edd3f
authored
Aug 23, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineandroid: Handle sizing and mouse events in physical coordinates.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d7cd4413
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
window.c
dlls/wineandroid.drv/window.c
+5
-0
No files found.
dlls/wineandroid.drv/window.c
View file @
240edd3f
...
@@ -408,6 +408,7 @@ static void pull_events(void)
...
@@ -408,6 +408,7 @@ static void pull_events(void)
*/
*/
static
int
process_events
(
DWORD
mask
)
static
int
process_events
(
DWORD
mask
)
{
{
DPI_AWARENESS_CONTEXT
context
;
struct
java_event
*
event
,
*
next
,
*
previous
;
struct
java_event
*
event
,
*
next
,
*
previous
;
unsigned
int
count
=
0
;
unsigned
int
count
=
0
;
...
@@ -448,11 +449,13 @@ static int process_events( DWORD mask )
...
@@ -448,11 +449,13 @@ static int process_events( DWORD mask )
{
{
case
DESKTOP_CHANGED
:
case
DESKTOP_CHANGED
:
TRACE
(
"DESKTOP_CHANGED %ux%u
\n
"
,
event
->
data
.
desktop
.
width
,
event
->
data
.
desktop
.
height
);
TRACE
(
"DESKTOP_CHANGED %ux%u
\n
"
,
event
->
data
.
desktop
.
width
,
event
->
data
.
desktop
.
height
);
context
=
SetThreadDpiAwarenessContext
(
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE
);
screen_width
=
event
->
data
.
desktop
.
width
;
screen_width
=
event
->
data
.
desktop
.
width
;
screen_height
=
event
->
data
.
desktop
.
height
;
screen_height
=
event
->
data
.
desktop
.
height
;
init_monitors
(
screen_width
,
screen_height
);
init_monitors
(
screen_width
,
screen_height
);
SetWindowPos
(
GetDesktopWindow
(),
0
,
0
,
0
,
screen_width
,
screen_height
,
SetWindowPos
(
GetDesktopWindow
(),
0
,
0
,
0
,
screen_width
,
screen_height
,
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
SWP_NOZORDER
|
SWP_NOACTIVATE
|
SWP_NOREDRAW
);
SetThreadDpiAwarenessContext
(
context
);
break
;
break
;
case
CONFIG_CHANGED
:
case
CONFIG_CHANGED
:
...
@@ -472,6 +475,7 @@ static int process_events( DWORD mask )
...
@@ -472,6 +475,7 @@ static int process_events( DWORD mask )
{
{
HWND
capture
=
get_capture_window
();
HWND
capture
=
get_capture_window
();
context
=
SetThreadDpiAwarenessContext
(
DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE
);
if
(
event
->
data
.
motion
.
input
.
u
.
mi
.
dwFlags
&
(
MOUSEEVENTF_LEFTDOWN
|
MOUSEEVENTF_RIGHTDOWN
|
MOUSEEVENTF_MIDDLEDOWN
))
if
(
event
->
data
.
motion
.
input
.
u
.
mi
.
dwFlags
&
(
MOUSEEVENTF_LEFTDOWN
|
MOUSEEVENTF_RIGHTDOWN
|
MOUSEEVENTF_MIDDLEDOWN
))
TRACE
(
"BUTTONDOWN pos %d,%d hwnd %p flags %x
\n
"
,
TRACE
(
"BUTTONDOWN pos %d,%d hwnd %p flags %x
\n
"
,
event
->
data
.
motion
.
input
.
u
.
mi
.
dx
,
event
->
data
.
motion
.
input
.
u
.
mi
.
dy
,
event
->
data
.
motion
.
input
.
u
.
mi
.
dx
,
event
->
data
.
motion
.
input
.
u
.
mi
.
dy
,
...
@@ -503,6 +507,7 @@ static int process_events( DWORD mask )
...
@@ -503,6 +507,7 @@ static int process_events( DWORD mask )
SERVER_END_REQ
;
SERVER_END_REQ
;
}
}
__wine_send_input
(
capture
?
capture
:
event
->
data
.
motion
.
hwnd
,
&
event
->
data
.
motion
.
input
);
__wine_send_input
(
capture
?
capture
:
event
->
data
.
motion
.
hwnd
,
&
event
->
data
.
motion
.
input
);
SetThreadDpiAwarenessContext
(
context
);
}
}
break
;
break
;
...
...
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