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
50dc5a30
Commit
50dc5a30
authored
May 26, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Crop the update region to the new window rectangle when resizing a
window.
parent
6bbd63e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
window.c
server/window.c
+18
-0
No files found.
server/window.c
View file @
50dc5a30
...
...
@@ -1164,6 +1164,24 @@ static void set_window_pos( struct window *win, struct window *previous,
goto
done
;
}
/* crop update region to the new window rect */
if
(
win
->
update_region
&&
(
window_rect
->
right
-
window_rect
->
left
<
old_window_rect
.
right
-
old_window_rect
.
left
||
window_rect
->
bottom
-
window_rect
->
top
<
old_window_rect
.
bottom
-
old_window_rect
.
top
))
{
struct
region
*
tmp
=
create_empty_region
();
if
(
tmp
)
{
set_region_rect
(
tmp
,
window_rect
);
offset_region
(
tmp
,
-
window_rect
->
left
,
-
window_rect
->
top
);
if
(
intersect_region
(
tmp
,
win
->
update_region
,
tmp
))
set_update_region
(
win
,
tmp
);
else
free_region
(
tmp
);
}
}
if
(
swp_flags
&
SWP_NOREDRAW
)
goto
done
;
/* do not repaint anything */
/* expose the whole non-client area if it changed in any way */
...
...
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