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
b2ea5723
Commit
b2ea5723
authored
Mar 18, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix desktop window coordinates mapping in expose_window.
parent
d9f8f704
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
10 deletions
+2
-10
window.c
server/window.c
+2
-10
No files found.
server/window.c
View file @
b2ea5723
...
...
@@ -1364,7 +1364,6 @@ static struct region *expose_window( struct window *win, const rectangle_t *old_
struct
region
*
old_vis_rgn
)
{
struct
region
*
new_vis_rgn
,
*
exposed_rgn
;
int
offset_x
,
offset_y
;
if
(
!
(
new_vis_rgn
=
get_visible_region
(
win
,
DCX_WINDOW
)))
return
NULL
;
...
...
@@ -1383,16 +1382,8 @@ static struct region *expose_window( struct window *win, const rectangle_t *old_
}
}
offset_x
=
old_window_rect
->
left
-
win
->
client_rect
.
left
;
offset_y
=
old_window_rect
->
top
-
win
->
client_rect
.
top
;
if
(
win
->
parent
)
{
if
(
!
is_desktop_window
(
win
->
parent
))
{
offset_x
+=
win
->
client_rect
.
left
;
offset_y
+=
win
->
client_rect
.
top
;
}
/* make it relative to the old window pos for subtracting */
offset_region
(
new_vis_rgn
,
win
->
window_rect
.
left
-
old_window_rect
->
left
,
win
->
window_rect
.
top
-
old_window_rect
->
top
);
...
...
@@ -1403,7 +1394,8 @@ static struct region *expose_window( struct window *win, const rectangle_t *old_
{
if
(
!
is_region_empty
(
new_vis_rgn
))
{
offset_region
(
new_vis_rgn
,
offset_x
,
offset_y
);
/* make it relative to parent */
offset_region
(
new_vis_rgn
,
old_window_rect
->
left
,
old_window_rect
->
top
);
redraw_window
(
win
->
parent
,
new_vis_rgn
,
0
,
RDW_INVALIDATE
|
RDW_ERASE
|
RDW_ALLCHILDREN
);
}
}
...
...
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