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
bf5470c0
Commit
bf5470c0
authored
Sep 01, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
We still need to look for the top parent that doesn't clip siblings in
GetDC because of the X window clipping.
parent
642180d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
10 deletions
+25
-10
winpos.c
dlls/x11drv/winpos.c
+25
-10
No files found.
dlls/x11drv/winpos.c
View file @
bf5470c0
...
...
@@ -416,21 +416,36 @@ BOOL X11DRV_GetDC( HWND hwnd, HDC hdc, HRGN hrgn, DWORD flags )
if
(
top
!=
hwnd
)
{
escape
.
drawable_org
.
x
=
escape
.
drawable_org
.
y
=
0
;
if
(
flags
&
(
DCX_WINDOW
|
DCX_PARENTCLIP
))
/* find the top most parent that doesn't clip siblings */
HWND
clipping_parent
=
0
;
HWND
*
list
=
WIN_ListParents
(
hwnd
);
if
(
list
)
{
escape
.
org
.
x
=
win
->
rectWindow
.
left
-
win
->
rectClient
.
left
;
escape
.
org
.
y
=
win
->
rectWindow
.
top
-
win
->
rectClient
.
top
;
MapWindowPoints
(
hwnd
,
top
,
&
escape
.
org
,
1
);
MapWindowPoints
(
top
,
0
,
&
escape
.
drawable_org
,
1
);
escape
.
drawable
=
X11DRV_get_client_window
(
top
);
int
i
;
for
(
i
=
0
;
list
[
i
]
!=
top
;
i
++
)
{
LONG
style
=
GetWindowLongW
(
list
[
i
],
GWL_STYLE
);
if
(
!
(
style
&
WS_CLIPSIBLINGS
))
clipping_parent
=
list
[
i
];
}
HeapFree
(
GetProcessHeap
(),
0
,
list
);
}
if
(
clipping_parent
)
clipping_parent
=
GetAncestor
(
clipping_parent
,
GA_PARENT
);
else
if
(
!
(
flags
&
DCX_CLIPSIBLINGS
)
||
(
flags
&
DCX_WINDOW
))
clipping_parent
=
GetAncestor
(
hwnd
,
GA_PARENT
);
else
clipping_parent
=
hwnd
;
escape
.
org
.
x
=
escape
.
org
.
y
=
0
;
escape
.
drawable_org
.
x
=
escape
.
drawable_org
.
y
=
0
;
if
(
flags
&
DCX_WINDOW
)
{
escape
.
org
.
x
=
escape
.
org
.
y
=
0
;
MapWindowPoints
(
hwnd
,
0
,
&
escape
.
drawable_org
,
1
);
escape
.
drawable
=
X11DRV_get_client_window
(
hwnd
);
escape
.
org
.
x
=
win
->
rectWindow
.
left
-
win
->
rectClient
.
left
;
escape
.
org
.
y
=
win
->
rectWindow
.
top
-
win
->
rectClient
.
top
;
}
MapWindowPoints
(
hwnd
,
clipping_parent
,
&
escape
.
org
,
1
);
MapWindowPoints
(
clipping_parent
,
0
,
&
escape
.
drawable_org
,
1
);
escape
.
drawable
=
X11DRV_get_client_window
(
clipping_parent
);
}
else
{
...
...
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