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
d594ba33
Commit
d594ba33
authored
Feb 13, 2017
by
Fabian Maurer
Committed by
Alexandre Julliard
Feb 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Only send position-change messages when needed.
Signed-off-by:
Fabian Maurer
<
dark.shadow4@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
997d4ef4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
msg.c
dlls/user32/tests/msg.c
+9
-9
winpos.c
dlls/user32/winpos.c
+4
-2
No files found.
dlls/user32/tests/msg.c
View file @
d594ba33
...
...
@@ -5164,31 +5164,31 @@ static void test_messages(void)
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq1
,
SWP_SHOWWINDOW
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
0
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOZORDER
,
TRU
E
);
SWP_SHOWWINDOW
|
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOCLIENTSIZE
|
SWP_NOCLIENTMOVE
|
SWP_NOZORDER
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq1
,
SWP_SHOWWINDOW
|
SWP_NOSIZE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq4
,
SWP_SHOWWINDOW
|
SWP_NOMOVE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCLIENTSIZE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCLIENTMOVE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCLIENTSIZE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCLIENTMOVE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq1
,
SWP_SHOWWINDOW
|
SWP_NOZORDER
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
|
SWP_NOCLIENTMOVE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
|
SWP_NOCLIENTSIZE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
|
SWP_NOCLIENTMOVE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
|
SWP_NOCLIENTSIZE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq5
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
|
SWP_NOMOVE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
|
SWP_NOSIZE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_DEFERERASE
|
SWP_NOZORDER
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq1
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
|
SWP_NOCLIENTMOVE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
|
SWP_NOCLIENTSIZE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
|
SWP_NOCLIENTMOVE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
|
SWP_NOCLIENTSIZE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq4
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
|
SWP_NOMOVE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq1
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
|
SWP_NOSIZE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq1
,
SWP_SHOWWINDOW
|
SWP_NOCOPYBITS
|
SWP_NOZORDER
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOCLIENTMOVE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOCLIENTSIZE
,
TRU
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOCLIENTMOVE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq3
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOCLIENTSIZE
,
FALS
E
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq5
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOMOVE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOSIZE
,
FALSE
);
test_msg_setpos
(
WmFirstDrawSetWindowPosSeq2
,
SWP_SHOWWINDOW
|
SWP_NOREDRAW
|
SWP_NOZORDER
,
FALSE
);
...
...
dlls/user32/winpos.c
View file @
d594ba33
...
...
@@ -1643,7 +1643,8 @@ static BOOL SWP_DoWinPosChanging( WINDOWPOS* pWinpos, RECT* pNewWindowRect, RECT
/* Send WM_WINDOWPOSCHANGING message */
if
(
!
(
pWinpos
->
flags
&
SWP_NOSENDCHANGING
))
if
(
!
(
pWinpos
->
flags
&
SWP_NOSENDCHANGING
)
&&
!
((
pWinpos
->
flags
&
SWP_AGG_NOCLIENTCHANGE
)
&&
(
pWinpos
->
flags
&
SWP_SHOWWINDOW
)))
SendMessageW
(
pWinpos
->
hwnd
,
WM_WINDOWPOSCHANGING
,
0
,
(
LPARAM
)
pWinpos
);
if
(
!
(
wndPtr
=
WIN_GetPtr
(
pWinpos
->
hwnd
))
||
...
...
@@ -2271,7 +2272,8 @@ BOOL USER_SetWindowPos( WINDOWPOS * winpos )
TRACE
(
"
\t
status flags = %04x
\n
"
,
winpos
->
flags
&
SWP_AGG_STATUSFLAGS
);
if
(((
winpos
->
flags
&
SWP_AGG_STATUSFLAGS
)
!=
SWP_AGG_NOPOSCHANGE
))
if
(((
winpos
->
flags
&
SWP_AGG_STATUSFLAGS
)
!=
SWP_AGG_NOPOSCHANGE
)
&&
!
((
orig_flags
&
SWP_AGG_NOCLIENTCHANGE
)
&&
(
orig_flags
&
SWP_SHOWWINDOW
)))
{
/* WM_WINDOWPOSCHANGED is sent even if SWP_NOSENDCHANGING is set
and always contains final window position.
...
...
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