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
b605980b
Commit
b605980b
authored
May 12, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Create a dummy parent window for composite child windows to avoid using the root.
parent
6e9dea8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
window.c
dlls/winex11.drv/window.c
+10
-5
No files found.
dlls/winex11.drv/window.c
View file @
b605980b
...
...
@@ -454,21 +454,26 @@ BOOL X11DRV_set_win_format( HWND hwnd, XID fbconfig_id )
if
(
usexcomposite
)
{
XSetWindowAttributes
attrib
;
Window
parent
=
X11DRV_get_whole_window
(
GetAncestor
(
hwnd
,
GA_ROOT
))
;
static
Window
dummy_parent
;
if
(
!
parent
)
parent
=
root_window
;
wine_tsx11_lock
();
data
->
colormap
=
XCreateColormap
(
gdi_display
,
parent
,
vis
->
visual
,
attrib
.
override_redirect
=
True
;
if
(
!
dummy_parent
)
{
dummy_parent
=
XCreateWindow
(
gdi_display
,
root_window
,
-
1
,
-
1
,
1
,
1
,
0
,
screen_depth
,
InputOutput
,
visual
,
CWOverrideRedirect
,
&
attrib
);
XMapWindow
(
gdi_display
,
dummy_parent
);
}
data
->
colormap
=
XCreateColormap
(
gdi_display
,
dummy_parent
,
vis
->
visual
,
(
vis
->
class
==
PseudoColor
||
vis
->
class
==
GrayScale
||
vis
->
class
==
DirectColor
)
?
AllocAll
:
AllocNone
);
attrib
.
override_redirect
=
True
;
attrib
.
colormap
=
data
->
colormap
;
XInstallColormap
(
gdi_display
,
attrib
.
colormap
);
if
(
data
->
gl_drawable
)
XDestroyWindow
(
gdi_display
,
data
->
gl_drawable
);
data
->
gl_drawable
=
XCreateWindow
(
gdi_display
,
parent
,
-
w
,
0
,
w
,
h
,
0
,
data
->
gl_drawable
=
XCreateWindow
(
gdi_display
,
dummy_
parent
,
-
w
,
0
,
w
,
h
,
0
,
vis
->
depth
,
InputOutput
,
vis
->
visual
,
CWColormap
|
CWOverrideRedirect
,
&
attrib
);
...
...
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