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
e00bb9d3
Commit
e00bb9d3
authored
Jan 31, 1999
by
NF Stevens
Committed by
Alexandre Julliard
Jan 31, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create X window for child windows reparented to be top level windows.
parent
e4b41afa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
+37
-3
wnd.c
windows/x11drv/wnd.c
+37
-3
No files found.
windows/x11drv/wnd.c
View file @
e00bb9d3
...
...
@@ -258,10 +258,44 @@ WND *X11DRV_WND_SetParent(WND *wndPtr, WND *pWndParent)
WIN_UnlinkWindow
(
wndPtr
->
hwndSelf
);
wndPtr
->
parent
=
pWndParent
;
/* FIXME:
Create an X counterpart for reparented top-level windows
/*
Create an X counterpart for reparented top-level windows
* when not in the desktop mode. */
if
(
pWndParent
!=
WIN_GetDesktop
()
)
wndPtr
->
dwStyle
|=
WS_CHILD
;
if
(
pWndParent
==
WIN_GetDesktop
()
)
{
wndPtr
->
dwStyle
&=
~
WS_CHILD
;
wndPtr
->
wIDmenu
=
0
;
if
(
rootWindow
==
DefaultRootWindow
(
display
)
)
{
CREATESTRUCT32A
cs
;
cs
.
lpCreateParams
=
NULL
;
cs
.
hInstance
=
0
;
/* not used if following call */
cs
.
hMenu
=
0
;
/* not used in following call */
cs
.
hwndParent
=
pWndParent
->
hwndSelf
;
cs
.
cy
=
wndPtr
->
rectWindow
.
bottom
-
wndPtr
->
rectWindow
.
top
;
cs
.
cx
=
wndPtr
->
rectWindow
.
right
-
wndPtr
->
rectWindow
.
left
;
cs
.
y
=
wndPtr
->
rectWindow
.
top
;
cs
.
x
=
wndPtr
->
rectWindow
.
left
;
cs
.
style
=
wndPtr
->
dwStyle
;
cs
.
lpszName
=
0
;
/* not used in following call */
cs
.
lpszClass
=
0
;
/*not used in following call */
cs
.
dwExStyle
=
wndPtr
->
dwExStyle
;
X11DRV_WND_CreateWindow
(
wndPtr
,
wndPtr
->
class
,
&
cs
,
FALSE
);
}
}
else
/* a child window */
{
if
(
!
(
wndPtr
->
dwStyle
&
WS_CHILD
)
)
{
wndPtr
->
dwStyle
|=
WS_CHILD
;
if
(
wndPtr
->
wIDmenu
!=
0
)
{
DestroyMenu32
(
(
HMENU32
)
wndPtr
->
wIDmenu
);
wndPtr
->
wIDmenu
=
0
;
}
}
}
WIN_LinkWindow
(
wndPtr
->
hwndSelf
,
HWND_TOP
);
if
(
bFixupDCE
)
...
...
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