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
0e28140f
Commit
0e28140f
authored
Feb 23, 2007
by
Pierre d'Herbemont
Committed by
Alexandre Julliard
Feb 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Check the valid rects after the set_window_pos wineserver call.
parent
99cb61ee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
winpos.c
dlls/winex11.drv/winpos.c
+23
-20
No files found.
dlls/winex11.drv/winpos.c
View file @
0e28140f
...
@@ -258,25 +258,6 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
...
@@ -258,25 +258,6 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
old_client_rect
=
data
->
client_rect
;
old_client_rect
=
data
->
client_rect
;
if
(
!
IsRectEmpty
(
&
valid_rects
[
0
]
))
{
int
x_offset
=
0
,
y_offset
=
0
;
if
(
data
->
whole_window
)
{
/* the X server will move the bits for us */
x_offset
=
data
->
whole_rect
.
left
-
new_whole_rect
.
left
;
y_offset
=
data
->
whole_rect
.
top
-
new_whole_rect
.
top
;
}
if
(
x_offset
!=
valid_rects
[
1
].
left
-
valid_rects
[
0
].
left
||
y_offset
!=
valid_rects
[
1
].
top
-
valid_rects
[
0
].
top
)
{
/* FIXME: should copy the window bits here */
valid_rects
=
NULL
;
}
}
if
(
!
(
win
=
WIN_GetPtr
(
hwnd
)))
return
FALSE
;
if
(
!
(
win
=
WIN_GetPtr
(
hwnd
)))
return
FALSE
;
if
(
win
==
WND_OTHER_PROCESS
)
if
(
win
==
WND_OTHER_PROCESS
)
{
{
...
@@ -343,7 +324,29 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
...
@@ -343,7 +324,29 @@ BOOL X11DRV_SetWindowPos( HWND hwnd, HWND insert_after, const RECT *rectWindow,
TRACE
(
"win %p window %s client %s style %08x
\n
"
,
TRACE
(
"win %p window %s client %s style %08x
\n
"
,
hwnd
,
wine_dbgstr_rect
(
rectWindow
),
wine_dbgstr_rect
(
rectClient
),
new_style
);
hwnd
,
wine_dbgstr_rect
(
rectWindow
),
wine_dbgstr_rect
(
rectClient
),
new_style
);
/* FIXME: copy the valid bits */
if
(
!
IsRectEmpty
(
&
valid_rects
[
0
]
))
{
int
x_offset
=
0
,
y_offset
=
0
;
if
(
data
->
whole_window
)
{
/* the X server will move the bits for us */
x_offset
=
data
->
whole_rect
.
left
-
new_whole_rect
.
left
;
y_offset
=
data
->
whole_rect
.
top
-
new_whole_rect
.
top
;
}
if
(
x_offset
!=
valid_rects
[
1
].
left
-
valid_rects
[
0
].
left
||
y_offset
!=
valid_rects
[
1
].
top
-
valid_rects
[
0
].
top
)
{
/* FIXME: should copy the window bits here */
RECT
invalid_rect
=
valid_rects
[
0
];
/* invalid_rects are relative to the client area */
OffsetRect
(
&
invalid_rect
,
-
rectClient
->
left
,
-
rectClient
->
top
);
RedrawWindow
(
hwnd
,
&
invalid_rect
,
NULL
,
RDW_INVALIDATE
|
RDW_ERASE
|
RDW_ALLCHILDREN
);
}
}
if
(
data
->
whole_window
&&
!
data
->
lock_changes
)
if
(
data
->
whole_window
&&
!
data
->
lock_changes
)
{
{
...
...
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