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
07d3846d
Commit
07d3846d
authored
Nov 14, 2023
by
Alexandros Frantzis
Committed by
Alexandre Julliard
Nov 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Respect per-monitor thread dpi awareness when getting window from point.
parent
a75e2b49
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
window.c
dlls/win32u/window.c
+3
-1
No files found.
dlls/win32u/window.c
View file @
07d3846d
...
...
@@ -2229,8 +2229,10 @@ HWND window_from_point( HWND hwnd, POINT pt, INT *hittest )
int
i
,
res
;
HWND
ret
,
*
list
;
POINT
win_pt
;
int
dpi
;
if
(
!
hwnd
)
hwnd
=
get_desktop_window
();
if
(
!
(
dpi
=
get_thread_dpi
()))
dpi
=
get_win_monitor_dpi
(
hwnd
);
*
hittest
=
HTNOWHERE
;
...
...
@@ -2254,7 +2256,7 @@ HWND window_from_point( HWND hwnd, POINT pt, INT *hittest )
*
hittest
=
HTCLIENT
;
break
;
}
win_pt
=
map_dpi_point
(
pt
,
get_thread_dpi
()
,
get_dpi_for_window
(
list
[
i
]
));
win_pt
=
map_dpi_point
(
pt
,
dpi
,
get_dpi_for_window
(
list
[
i
]
));
res
=
send_message
(
list
[
i
],
WM_NCHITTEST
,
0
,
MAKELPARAM
(
win_pt
.
x
,
win_pt
.
y
));
if
(
res
!=
HTTRANSPARENT
)
{
...
...
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