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
6f2c1860
Commit
6f2c1860
authored
May 31, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Hide window icons in desktop mode when the taskbar is active.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9da34d94
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
window.c
dlls/winex11.drv/window.c
+13
-3
No files found.
dlls/winex11.drv/window.c
View file @
6f2c1860
...
@@ -2404,6 +2404,16 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
...
@@ -2404,6 +2404,16 @@ void CDECL X11DRV_WindowPosChanged( HWND hwnd, HWND insert_after, UINT swp_flags
release_win_data
(
data
);
release_win_data
(
data
);
}
}
/* check if the window icon should be hidden (i.e. moved off-screen) */
static
BOOL
hide_icon
(
struct
x11drv_win_data
*
data
)
{
static
const
WCHAR
trayW
[]
=
{
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
'_'
,
'T'
,
'r'
,
'a'
,
'y'
,
'W'
,
'n'
,
'd'
,
0
};
if
(
data
->
managed
)
return
TRUE
;
/* hide icons in desktop mode when the taskbar is active */
if
(
root_window
==
DefaultRootWindow
(
gdi_display
))
return
FALSE
;
return
IsWindowVisible
(
FindWindowW
(
trayW
,
NULL
));
}
/***********************************************************************
/***********************************************************************
* ShowWindow (X11DRV.@)
* ShowWindow (X11DRV.@)
...
@@ -2418,18 +2428,18 @@ UINT CDECL X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
...
@@ -2418,18 +2428,18 @@ UINT CDECL X11DRV_ShowWindow( HWND hwnd, INT cmd, RECT *rect, UINT swp )
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
struct
x11drv_thread_data
*
thread_data
=
x11drv_thread_data
();
struct
x11drv_win_data
*
data
=
get_win_data
(
hwnd
);
struct
x11drv_win_data
*
data
=
get_win_data
(
hwnd
);
if
(
!
data
||
!
data
->
whole_window
||
!
data
->
managed
)
goto
done
;
if
(
!
data
||
!
data
->
whole_window
)
goto
done
;
if
(
IsRectEmpty
(
rect
))
goto
done
;
if
(
IsRectEmpty
(
rect
))
goto
done
;
if
(
style
&
WS_MINIMIZE
)
if
(
style
&
WS_MINIMIZE
)
{
{
if
(
rect
->
left
!=
-
32000
||
rect
->
top
!=
-
32000
)
if
(
((
rect
->
left
!=
-
32000
||
rect
->
top
!=
-
32000
))
&&
hide_icon
(
data
)
)
{
{
OffsetRect
(
rect
,
-
32000
-
rect
->
left
,
-
32000
-
rect
->
top
);
OffsetRect
(
rect
,
-
32000
-
rect
->
left
,
-
32000
-
rect
->
top
);
swp
&=
~
(
SWP_NOMOVE
|
SWP_NOCLIENTMOVE
);
swp
&=
~
(
SWP_NOMOVE
|
SWP_NOCLIENTMOVE
);
}
}
goto
done
;
goto
done
;
}
}
if
(
!
data
->
mapped
||
data
->
iconic
)
goto
done
;
if
(
!
data
->
ma
naged
||
!
data
->
ma
pped
||
data
->
iconic
)
goto
done
;
/* only fetch the new rectangle if the ShowWindow was a result of a window manager event */
/* only fetch the new rectangle if the ShowWindow was a result of a window manager event */
...
...
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