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
dc07b6f9
Commit
dc07b6f9
authored
Jan 22, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Only allocate wm hints if we have an X11 window.
parent
390ae9cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
window.c
dlls/winex11.drv/window.c
+3
-2
No files found.
dlls/winex11.drv/window.c
View file @
dc07b6f9
...
...
@@ -773,6 +773,7 @@ static void set_initial_wm_hints( Display *display, struct x11drv_win_data *data
XChangeProperty
(
display
,
data
->
whole_window
,
x11drv_atom
(
XdndAware
),
XA_ATOM
,
32
,
PropModeReplace
,
(
unsigned
char
*
)
&
dndVersion
,
1
);
data
->
wm_hints
=
XAllocWMHints
();
wine_tsx11_unlock
();
if
(
data
->
wm_hints
)
...
...
@@ -1100,6 +1101,8 @@ static void destroy_whole_window( Display *display, struct x11drv_win_data *data
}
/* Outlook stops processing messages after destroying a dialog, so we need an explicit flush */
XFlush
(
display
);
XFree
(
data
->
wm_hints
);
data
->
wm_hints
=
NULL
;
wine_tsx11_unlock
();
RemovePropA
(
data
->
hwnd
,
whole_window_prop
);
}
...
...
@@ -1193,7 +1196,6 @@ void X11DRV_DestroyWindow( HWND hwnd )
if
(
data
->
hWMIconMask
)
DeleteObject
(
data
->
hWMIconMask
);
wine_tsx11_lock
();
XDeleteContext
(
display
,
(
XID
)
hwnd
,
win_data_context
);
XFree
(
data
->
wm_hints
);
wine_tsx11_unlock
();
HeapFree
(
GetProcessHeap
(),
0
,
data
);
}
...
...
@@ -1210,7 +1212,6 @@ static struct x11drv_win_data *alloc_win_data( Display *display, HWND hwnd )
if
(
!
winContext
)
winContext
=
XUniqueContext
();
if
(
!
win_data_context
)
win_data_context
=
XUniqueContext
();
XSaveContext
(
display
,
(
XID
)
hwnd
,
win_data_context
,
(
char
*
)
data
);
data
->
wm_hints
=
XAllocWMHints
();
wine_tsx11_unlock
();
}
return
data
;
...
...
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