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
f40b0458
Commit
f40b0458
authored
Mar 18, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Avoid useless updates of the desktop window Z-order.
parent
9454e3ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
+16
-14
winpos.c
dlls/winex11.drv/winpos.c
+16
-14
No files found.
dlls/winex11.drv/winpos.c
View file @
f40b0458
...
...
@@ -68,7 +68,7 @@ void X11DRV_Expose( HWND hwnd, XEvent *xev )
XExposeEvent
*
event
=
&
xev
->
xexpose
;
RECT
rect
;
struct
x11drv_win_data
*
data
;
int
flags
=
RDW_INVALIDATE
|
RDW_ERASE
|
RDW_ALLCHILDREN
;
int
flags
=
RDW_INVALIDATE
|
RDW_ERASE
;
TRACE
(
"win %p (%lx) %d,%d %dx%d
\n
"
,
hwnd
,
event
->
window
,
event
->
x
,
event
->
y
,
event
->
width
,
event
->
height
);
...
...
@@ -89,22 +89,24 @@ void X11DRV_Expose( HWND hwnd, XEvent *xev )
rect
.
right
=
rect
.
left
+
event
->
width
;
rect
.
bottom
=
rect
.
top
+
event
->
height
;
if
(
event
->
window
==
root_window
)
OffsetRect
(
&
rect
,
virtual_screen_rect
.
left
,
virtual_screen_rect
.
top
);
SERVER_START_REQ
(
update_window_zorder
)
if
(
event
->
window
!=
root_window
)
{
req
->
window
=
hwnd
;
req
->
rect
.
left
=
rect
.
left
;
req
->
rect
.
top
=
rect
.
top
;
req
->
rect
.
right
=
rect
.
right
;
req
->
rect
.
bottom
=
rect
.
bottom
;
wine_server_call
(
req
);
SERVER_START_REQ
(
update_window_zorder
)
{
req
->
window
=
hwnd
;
req
->
rect
.
left
=
rect
.
left
;
req
->
rect
.
top
=
rect
.
top
;
req
->
rect
.
right
=
rect
.
right
;
req
->
rect
.
bottom
=
rect
.
bottom
;
wine_server_call
(
req
);
}
SERVER_END_REQ
;
/* make position relative to client area instead of parent */
OffsetRect
(
&
rect
,
-
data
->
client_rect
.
left
,
-
data
->
client_rect
.
top
);
flags
|=
RDW_ALLCHILDREN
;
}
SERVER_END_REQ
;
/* make position relative to client area instead of parent */
OffsetRect
(
&
rect
,
-
data
->
client_rect
.
left
,
-
data
->
client_rect
.
top
);
RedrawWindow
(
hwnd
,
&
rect
,
0
,
flags
);
}
...
...
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