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
8f24cd05
Commit
8f24cd05
authored
Nov 05, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Sync the window attributes when switching a window to embedded.
parent
de983c22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
window.c
dlls/winex11.drv/window.c
+12
-9
No files found.
dlls/winex11.drv/window.c
View file @
8f24cd05
...
...
@@ -1356,6 +1356,8 @@ static void set_xembed_flags( Display *display, struct x11drv_win_data *data, un
{
unsigned
long
info
[
2
];
if
(
!
data
->
whole_window
)
return
;
info
[
0
]
=
0
;
/* protocol version */
info
[
1
]
=
flags
;
wine_tsx11_lock
();
...
...
@@ -1418,18 +1420,19 @@ static void unmap_window( Display *display, struct x11drv_win_data *data )
*/
void
make_window_embedded
(
Display
*
display
,
struct
x11drv_win_data
*
data
)
{
if
(
data
->
mapped
)
{
/* the window cannot be mapped before being embedded */
unmap_window
(
display
,
data
);
data
->
embedded
=
TRUE
;
BOOL
was_mapped
=
data
->
mapped
;
/* the window cannot be mapped before being embedded */
if
(
data
->
mapped
)
unmap_window
(
display
,
data
);
data
->
embedded
=
TRUE
;
data
->
managed
=
TRUE
;
SetPropA
(
data
->
hwnd
,
managed_prop
,
(
HANDLE
)
1
);
sync_window_style
(
display
,
data
);
if
(
was_mapped
)
map_window
(
display
,
data
,
0
);
}
else
{
data
->
embedded
=
TRUE
;
set_xembed_flags
(
display
,
data
,
0
);
}
}
...
...
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