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
b9a9de6e
Commit
b9a9de6e
authored
Mar 10, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear the internal paint flag in the server before returning a
WM_PAINT message to avoid an extra server round-trip.
parent
454c1b75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
message.c
dlls/user/message.c
+2
-5
window.c
server/window.c
+7
-5
No files found.
dlls/user/message.c
View file @
b9a9de6e
...
...
@@ -2692,11 +2692,6 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
return
FALSE
;
}
WIN_RestoreWndsLock
(
locks
);
if
(
msg
.
message
==
WM_PAINT
)
/* clear internal paint flag */
RedrawWindow
(
msg
.
hwnd
,
NULL
,
0
,
RDW_NOINTERNALPAINT
|
RDW_NOCHILDREN
);
if
((
queue
=
QUEUE_Current
()))
{
queue
->
GetMessageTimeVal
=
msg
.
time
;
...
...
@@ -2706,6 +2701,8 @@ BOOL WINAPI PeekMessageW( MSG *msg_out, HWND hwnd, UINT first, UINT last, UINT f
HOOK_CallHooks
(
WH_GETMESSAGE
,
HC_ACTION
,
flags
&
PM_REMOVE
,
(
LPARAM
)
&
msg
,
TRUE
);
WIN_RestoreWndsLock
(
locks
);
/* copy back our internal safe copy of message data to msg_out.
* msg_out is a variable from the *program*, so it can't be used
* internally as it can get "corrupted" by our use of SendMessage()
...
...
server/window.c
View file @
b9a9de6e
...
...
@@ -589,20 +589,22 @@ static struct window *find_child_to_repaint( struct window *parent, struct threa
}
/* find a window that needs to receive a WM_PAINT */
/* find a window that needs to receive a WM_PAINT
; also clear its internal paint flag
*/
user_handle_t
find_window_to_repaint
(
user_handle_t
parent
,
struct
thread
*
thread
)
{
struct
window
*
ptr
,
*
win
=
find_child_to_repaint
(
top_window
,
thread
);
if
(
win
)
if
(
win
&&
parent
)
{
if
(
!
parent
)
return
win
->
handle
;
/* check that it is a child of the specified parent */
for
(
ptr
=
win
;
ptr
;
ptr
=
ptr
->
parent
)
if
(
ptr
->
handle
==
parent
)
return
win
->
handle
;
if
(
ptr
->
handle
==
parent
)
break
;
/* otherwise don't return any window, we don't repaint a child before its parent */
if
(
!
ptr
)
win
=
NULL
;
}
return
0
;
if
(
!
win
)
return
0
;
win
->
paint_flags
&=
~
PAINT_INTERNAL
;
return
win
->
handle
;
}
...
...
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