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
76b8612c
Commit
76b8612c
authored
Feb 13, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Preserve the client window when changing the window visual.
parent
9779c4b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
window.c
dlls/winex11.drv/window.c
+12
-1
No files found.
dlls/winex11.drv/window.c
View file @
76b8612c
...
...
@@ -1525,12 +1525,23 @@ static void destroy_whole_window( struct x11drv_win_data *data, BOOL already_des
*/
void
set_window_visual
(
struct
x11drv_win_data
*
data
,
const
XVisualInfo
*
vis
)
{
Window
client_window
=
data
->
client_window
;
Window
whole_window
=
data
->
whole_window
;
if
(
data
->
vis
.
visualid
==
vis
->
visualid
)
return
;
destroy_whole_window
(
data
,
FALSE
);
data
->
client_window
=
0
;
destroy_whole_window
(
data
,
client_window
!=
0
/* don't destroy whole_window until reparented */
);
if
(
data
->
surface
)
window_surface_release
(
data
->
surface
);
data
->
surface
=
NULL
;
data
->
vis
=
*
vis
;
create_whole_window
(
data
);
if
(
!
client_window
)
return
;
/* move the client to the new parent */
XReparentWindow
(
data
->
display
,
client_window
,
data
->
whole_window
,
data
->
client_rect
.
left
-
data
->
whole_rect
.
left
,
data
->
client_rect
.
top
-
data
->
whole_rect
.
top
);
data
->
client_window
=
client_window
;
XDestroyWindow
(
data
->
display
,
whole_window
);
}
...
...
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