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
38a76ecb
Commit
38a76ecb
authored
Mar 23, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Apr 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: SetWindowPos() should check the final window position in screen coords…
user32: SetWindowPos() should check the final window position in screen coords before adding SWP_NOMOVE.
parent
847317d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
winpos.c
dlls/user32/winpos.c
+6
-2
No files found.
dlls/user32/winpos.c
View file @
38a76ecb
...
...
@@ -1849,6 +1849,7 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
{
HWND
parent
;
RECT
window_rect
;
POINT
pt
;
WND
*
wndPtr
=
WIN_GetPtr
(
winpos
->
hwnd
);
BOOL
ret
=
TRUE
;
...
...
@@ -1880,12 +1881,15 @@ static BOOL fixup_flags( WINDOWPOS *winpos )
if
(
!
(
winpos
->
flags
&
SWP_SHOWWINDOW
))
winpos
->
flags
|=
SWP_NOREDRAW
;
}
WIN_GetRectangles
(
winpos
->
hwnd
,
COORDS_
PARENT
,
&
window_rect
,
NULL
);
WIN_GetRectangles
(
winpos
->
hwnd
,
COORDS_
SCREEN
,
&
window_rect
,
NULL
);
if
((
window_rect
.
right
-
window_rect
.
left
==
winpos
->
cx
)
&&
(
window_rect
.
bottom
-
window_rect
.
top
==
winpos
->
cy
))
winpos
->
flags
|=
SWP_NOSIZE
;
/* Already the right size */
if
((
window_rect
.
left
==
winpos
->
x
)
&&
(
window_rect
.
top
==
winpos
->
y
))
pt
.
x
=
winpos
->
x
;
pt
.
y
=
winpos
->
y
;
ClientToScreen
(
parent
,
&
pt
);
if
((
window_rect
.
left
==
pt
.
x
)
&&
(
window_rect
.
top
==
pt
.
y
))
winpos
->
flags
|=
SWP_NOMOVE
;
/* Already the right position */
if
((
wndPtr
->
dwStyle
&
(
WS_POPUP
|
WS_CHILD
))
!=
WS_CHILD
)
...
...
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