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
69b41aeb
Commit
69b41aeb
authored
Jun 10, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Don't bother with taskbar buttons when the taskbar is not visible.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1b025eb0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
systray.c
programs/explorer/systray.c
+5
-1
No files found.
programs/explorer/systray.c
View file @
69b41aeb
...
...
@@ -483,6 +483,8 @@ static void sync_taskbar_buttons(void)
int
right
=
tray_width
-
nb_displayed
*
icon_cx
;
HWND
foreground
=
GetAncestor
(
GetForegroundWindow
(),
GA_ROOTOWNER
);
if
(
!
IsWindowVisible
(
tray_window
))
return
;
LIST_FOR_EACH_ENTRY
(
win
,
&
taskbar_buttons
,
struct
taskbar_button
,
entry
)
{
if
(
!
win
->
hwnd
)
/* start button */
...
...
@@ -597,6 +599,8 @@ static void add_taskbar_button( HWND hwnd )
{
struct
taskbar_button
*
win
;
if
(
hide_systray
)
return
;
/* ignore our own windows */
if
(
hwnd
)
{
...
...
@@ -730,9 +734,9 @@ static void do_show_systray(void)
tray_width
=
GetSystemMetrics
(
SM_CXSCREEN
);
tray_height
=
max
(
icon_cy
,
size
.
cy
);
start_button_width
=
size
.
cx
;
sync_taskbar_buttons
();
SetWindowPos
(
tray_window
,
HWND_TOPMOST
,
0
,
GetSystemMetrics
(
SM_CYSCREEN
)
-
tray_height
,
tray_width
,
tray_height
,
SWP_NOACTIVATE
|
SWP_SHOWWINDOW
);
sync_taskbar_buttons
();
}
static
LRESULT
WINAPI
tray_wndproc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
...
...
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