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
f8096d2b
Commit
f8096d2b
authored
Aug 27, 2008
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 29, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
systray: Keep systray hidden when requested by moving it off screen.
parent
c5ef467f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
systray.c
programs/explorer/systray.c
+15
-0
No files found.
programs/explorer/systray.c
View file @
f8096d2b
...
...
@@ -430,6 +430,14 @@ static BOOL handle_incoming(HWND hwndSource, COPYDATASTRUCT *cds)
return
ret
;
}
static
void
do_hide_systray
(
void
)
{
SetWindowPos
(
tray_window
,
0
,
GetSystemMetrics
(
SM_XVIRTUALSCREEN
)
+
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
)
+
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
),
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_NOACTIVATE
);
}
static
LRESULT
WINAPI
tray_wndproc
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
{
switch
(
msg
)
...
...
@@ -437,6 +445,10 @@ static LRESULT WINAPI tray_wndproc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
case
WM_COPYDATA
:
return
handle_incoming
((
HWND
)
wparam
,
(
COPYDATASTRUCT
*
)
lparam
);
case
WM_DISPLAYCHANGE
:
if
(
hide_systray
)
do_hide_systray
();
break
;
case
WM_TIMER
:
cleanup_destroyed_windows
();
break
;
...
...
@@ -568,5 +580,8 @@ void initialize_systray(void)
WINE_ERR
(
"Could not create tray window
\n
"
);
return
;
}
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