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
e9307d09
Commit
e9307d09
authored
Feb 21, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Keep track of the window colormap and free it on destroy.
parent
b5511ac6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
window.c
dlls/winex11.drv/window.c
+10
-2
x11drv.h
dlls/winex11.drv/x11drv.h
+1
-0
No files found.
dlls/winex11.drv/window.c
View file @
e9307d09
...
...
@@ -360,12 +360,13 @@ BOOL X11DRV_set_win_format( HWND hwnd, XID fbconfig_id )
{
XSetWindowAttributes
attrib
;
attrib
.
override_redirect
=
True
;
attrib
.
colormap
=
XCreateColormap
(
display
,
parent
,
vis
->
visual
,
data
->
colormap
=
XCreateColormap
(
display
,
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
);
data
->
gl_drawable
=
XCreateWindow
(
display
,
parent
,
-
w
,
0
,
w
,
h
,
0
,
...
...
@@ -1294,6 +1295,13 @@ void X11DRV_DestroyWindow( HWND hwnd )
destroy_whole_window
(
display
,
data
);
destroy_icon_window
(
display
,
data
);
if
(
data
->
colormap
)
{
wine_tsx11_lock
();
XFreeColormap
(
display
,
data
->
colormap
);
wine_tsx11_unlock
();
}
if
(
thread_data
->
last_focus
==
hwnd
)
thread_data
->
last_focus
=
0
;
if
(
data
->
hWMIconBitmap
)
DeleteObject
(
data
->
hWMIconBitmap
);
if
(
data
->
hWMIconMask
)
DeleteObject
(
data
->
hWMIconMask
);
...
...
dlls/winex11.drv/x11drv.h
View file @
e9307d09
...
...
@@ -665,6 +665,7 @@ struct x11drv_win_data
Window
whole_window
;
/* X window for the complete window */
Window
client_window
;
/* X window for the client area */
Window
icon_window
;
/* X window for the icon */
Colormap
colormap
;
/* Colormap for this window */
XID
fbconfig_id
;
/* fbconfig id for the GL drawable this hwnd uses */
Drawable
gl_drawable
;
/* Optional GL drawable for rendering the client area */
Pixmap
pixmap
;
/* Base pixmap for if gl_drawable is a GLXPixmap */
...
...
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