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
d8c02207
Commit
d8c02207
authored
Aug 18, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Only run the systray timer when a systray icon is present.
parent
1afc16e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
systray.c
programs/explorer/systray.c
+2
-2
No files found.
programs/explorer/systray.c
View file @
d8c02207
...
...
@@ -340,6 +340,7 @@ static BOOL add_icon(NOTIFYICONDATAW *nid)
icon
->
owner
=
nid
->
hWnd
;
icon
->
display
=
-
1
;
if
(
list_empty
(
&
icon_list
))
SetTimer
(
tray_window
,
1
,
2000
,
NULL
);
list_add_tail
(
&
icon_list
,
&
icon
->
entry
);
modify_icon
(
icon
,
nid
);
...
...
@@ -355,6 +356,7 @@ static BOOL delete_icon(struct icon *icon)
list_remove
(
&
icon
->
entry
);
DestroyIcon
(
icon
->
image
);
HeapFree
(
GetProcessHeap
(),
0
,
icon
);
if
(
list_empty
(
&
icon_list
))
KillTimer
(
tray_window
,
1
);
return
TRUE
;
}
...
...
@@ -596,6 +598,4 @@ void initialize_systray(void)
}
if
(
hide_systray
)
do_hide_systray
();
SetTimer
(
tray_window
,
1
,
2000
,
NULL
);
}
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