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
41d03165
Commit
41d03165
authored
Sep 18, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add window data locking to the system tray functions.
parent
731e497a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
systray.c
dlls/winex11.drv/systray.c
+7
-4
No files found.
dlls/winex11.drv/systray.c
View file @
41d03165
...
...
@@ -564,8 +564,11 @@ static BOOL hide_icon( struct tray_icon *icon )
if
(
!
icon
->
window
)
return
TRUE
;
/* already hidden */
/* make sure we don't try to unmap it, it confuses some systray docks */
if
((
data
=
X11DRV_get_win_data
(
icon
->
window
))
&&
data
->
embedded
)
data
->
mapped
=
FALSE
;
if
((
data
=
get_win_data
(
icon
->
window
)))
{
if
(
data
->
embedded
)
data
->
mapped
=
FALSE
;
release_win_data
(
data
);
}
DestroyWindow
(
icon
->
window
);
DestroyWindow
(
icon
->
tooltip
);
icon
->
window
=
0
;
...
...
@@ -613,8 +616,8 @@ static BOOL modify_icon( struct tray_icon *icon, NOTIFYICONDATAW *nid )
if
(
icon
->
display
!=
-
1
)
InvalidateRect
(
icon
->
window
,
NULL
,
TRUE
);
else
{
struct
x11drv_win_data
*
data
=
X11DRV_get_win_data
(
icon
->
window
);
if
(
data
)
XClearArea
(
gdi_display
,
data
->
whole_window
,
0
,
0
,
0
,
0
,
True
);
Window
win
=
X11DRV_get_whole_window
(
icon
->
window
);
if
(
win
)
XClearArea
(
gdi_display
,
win
,
0
,
0
,
0
,
0
,
True
);
}
}
}
...
...
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