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
044f790b
Commit
044f790b
authored
Aug 30, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Always paint to the whole window.
parent
29675992
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
window.c
dlls/winex11.drv/window.c
+6
-8
window.c
server/window.c
+1
-1
No files found.
dlls/winex11.drv/window.c
View file @
044f790b
...
...
@@ -2218,10 +2218,7 @@ void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
{
escape
.
drawable
=
data
->
icon_window
;
}
else
if
(
flags
&
DCX_WINDOW
)
escape
.
drawable
=
data
?
data
->
whole_window
:
X11DRV_get_whole_window
(
hwnd
);
else
escape
.
drawable
=
escape
.
gl_drawable
;
else
escape
.
drawable
=
data
?
data
->
whole_window
:
X11DRV_get_whole_window
(
hwnd
);
if
(
escape
.
gl_drawable
)
escape
.
gl_type
=
DC_GL_WINDOW
;
/* special case: when repainting the root window, clip out top-level windows */
...
...
@@ -2231,21 +2228,22 @@ void CDECL X11DRV_GetDC( HDC hdc, HWND hwnd, HWND top, const RECT *win_rect,
{
/* find the first ancestor that has a drawable */
for
(
parent
=
hwnd
;
parent
&&
parent
!=
top
;
parent
=
GetAncestor
(
parent
,
GA_PARENT
))
if
((
escape
.
drawable
=
X11DRV_get_
client
_window
(
parent
)))
break
;
if
((
escape
.
drawable
=
X11DRV_get_
whole
_window
(
parent
)))
break
;
if
(
escape
.
drawable
)
{
POINT
pt
=
{
0
,
0
};
MapWindowPoints
(
top
,
parent
,
&
pt
,
1
);
MapWindowPoints
(
0
,
parent
,
&
pt
,
1
);
escape
.
dc_rect
=
*
win_rect
;
OffsetRect
(
&
escape
.
dc_rect
,
pt
.
x
,
pt
.
y
);
if
(
flags
&
DCX_CLIPCHILDREN
)
escape
.
mode
=
ClipByChildren
;
}
else
escape
.
drawable
=
X11DRV_get_
client
_window
(
top
);
else
escape
.
drawable
=
X11DRV_get_
whole
_window
(
top
);
escape
.
fbconfig_id
=
data
?
data
->
fbconfig_id
:
(
XID
)
GetPropA
(
hwnd
,
fbconfig_id_prop
);
escape
.
gl_drawable
=
data
?
data
->
gl_drawable
:
(
Drawable
)
GetPropA
(
hwnd
,
gl_drawable_prop
);
escape
.
pixmap
=
data
?
data
->
pixmap
:
(
Pixmap
)
GetPropA
(
hwnd
,
pixmap_prop
);
if
(
escape
.
gl_drawable
)
escape
.
gl_type
=
escape
.
pixmap
?
DC_GL_PIXMAP_WIN
:
DC_GL_CHILD_WIN
;
if
(
flags
&
DCX_CLIPCHILDREN
)
escape
.
mode
=
ClipByChildren
;
}
ExtEscape
(
hdc
,
X11DRV_ESCAPE
,
sizeof
(
escape
),
(
LPSTR
)
&
escape
,
0
,
NULL
);
...
...
server/window.c
View file @
044f790b
...
...
@@ -2311,7 +2311,7 @@ DECL_HANDLER(get_visible_region)
if
(
data
)
set_reply_data_ptr
(
data
,
reply
->
total_size
);
}
reply
->
top_win
=
top
->
handle
;
reply
->
top_rect
=
(
top
==
win
&&
(
req
->
flags
&
DCX_WINDOW
))
?
top
->
visible_rect
:
top
->
client
_rect
;
reply
->
top_rect
=
top
->
visible
_rect
;
if
(
!
is_desktop_window
(
win
))
{
...
...
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