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
2921f5c1
Commit
2921f5c1
authored
Jan 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Invalidate the correct region when custom valid rects are specified.
parent
2f69329a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
window.c
server/window.c
+24
-20
No files found.
server/window.c
View file @
2921f5c1
...
...
@@ -1500,42 +1500,46 @@ static void set_window_pos( struct window *win, struct window *previous,
client_changed
=
(
client_rect
->
left
-
old_client_rect
.
left
!=
x_offset
||
client_rect
->
right
-
old_client_rect
.
right
!=
x_offset
||
client_rect
->
top
-
old_client_rect
.
top
!=
y_offset
||
client_rect
->
bottom
-
old_client_rect
.
bottom
!=
y_offset
);
client_rect
->
bottom
-
old_client_rect
.
bottom
!=
y_offset
||
!
valid_rects
||
memcmp
(
&
valid_rects
[
0
],
client_rect
,
sizeof
(
*
client_rect
)
));
}
if
(
frame_changed
||
client_changed
)
{
struct
region
*
tmp
=
create_empty_region
();
struct
region
*
win_rgn
=
old_vis_rgn
;
/* reuse previous region */
if
(
tmp
)
set_region_rect
(
win_rgn
,
window_rect
);
if
(
valid_rects
)
{
/* subtract the valid portion of client rect from the total region */
if
(
!
client_changed
)
set_region_rect
(
tmp
,
client_rect
);
else
if
(
valid_rects
)
set_region_rect
(
tmp
,
&
valid_rects
[
0
]
);
set_region_rect
(
old_vis_rgn
,
window_rect
);
if
(
!
subtract_region
(
tmp
,
old_vis_rgn
,
tmp
))
free_region
(
tmp
);
else
struct
region
*
tmp
=
create_empty_region
();
if
(
tmp
)
{
if
(
!
is_desktop_window
(
win
))
offset_region
(
tmp
,
-
client_rect
->
left
,
-
client_rect
->
top
);
if
(
exposed_rgn
)
{
union_region
(
exposed_rgn
,
exposed_rgn
,
tmp
);
free_region
(
tmp
);
}
else
exposed_rgn
=
tmp
;
set_region_rect
(
tmp
,
&
valid_rects
[
0
]
);
if
(
subtract_region
(
tmp
,
win_rgn
,
tmp
))
win_rgn
=
tmp
;
else
free_region
(
tmp
);
}
}
if
(
!
is_desktop_window
(
win
))
offset_region
(
win_rgn
,
-
client_rect
->
left
,
-
client_rect
->
top
);
if
(
exposed_rgn
)
{
union_region
(
exposed_rgn
,
exposed_rgn
,
win_rgn
);
if
(
win_rgn
!=
old_vis_rgn
)
free_region
(
win_rgn
);
}
else
{
exposed_rgn
=
win_rgn
;
if
(
win_rgn
==
old_vis_rgn
)
old_vis_rgn
=
NULL
;
}
}
if
(
exposed_rgn
)
redraw_window
(
win
,
exposed_rgn
,
1
,
RDW_INVALIDATE
|
RDW_ERASE
|
RDW_FRAME
|
RDW_ALLCHILDREN
);
done:
free_region
(
old_vis_rgn
);
if
(
old_vis_rgn
)
free_region
(
old_vis_rgn
);
if
(
exposed_rgn
)
free_region
(
exposed_rgn
);
clear_error
();
/* we ignore out of memory errors once the new rects have been set */
}
...
...
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