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
e2c61bab
Commit
e2c61bab
authored
Nov 26, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Send WM_MOVING instead of WM_SIZING when moving a window.
parent
ba4de80e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
winpos.c
dlls/user32/winpos.c
+10
-5
No files found.
dlls/user32/winpos.c
View file @
e2c61bab
...
...
@@ -2771,8 +2771,6 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
if
(
msg
.
message
==
WM_KEYDOWN
)
SetCursorPos
(
pt
.
x
,
pt
.
y
);
else
{
WPARAM
wpSizingHit
=
0
;
if
(
!
iconic
&&
!
DragFullWindows
)
draw_moving_frame
(
parent
,
hdc
,
&
sizingRect
,
thickframe
);
if
(
hittest
==
HTCAPTION
)
OffsetRect
(
&
sizingRect
,
dx
,
dy
);
if
(
ON_LEFT_BORDER
(
hittest
))
sizingRect
.
left
+=
dx
;
...
...
@@ -2782,9 +2780,16 @@ void WINPOS_SysCommandSizeMove( HWND hwnd, WPARAM wParam )
capturePoint
=
pt
;
/* determine the hit location */
if
(
hittest
>=
HTLEFT
&&
hittest
<=
HTBOTTOMRIGHT
)
wpSizingHit
=
WMSZ_LEFT
+
(
hittest
-
HTLEFT
);
SendMessageW
(
hwnd
,
WM_SIZING
,
wpSizingHit
,
(
LPARAM
)
&
sizingRect
);
if
(
syscommand
==
SC_SIZE
)
{
WPARAM
wpSizingHit
=
0
;
if
(
hittest
>=
HTLEFT
&&
hittest
<=
HTBOTTOMRIGHT
)
wpSizingHit
=
WMSZ_LEFT
+
(
hittest
-
HTLEFT
);
SendMessageW
(
hwnd
,
WM_SIZING
,
wpSizingHit
,
(
LPARAM
)
&
sizingRect
);
}
else
SendMessageW
(
hwnd
,
WM_MOVING
,
0
,
(
LPARAM
)
&
sizingRect
);
if
(
!
iconic
)
{
...
...
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