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
49a5db38
Commit
49a5db38
authored
Oct 15, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Don't show the icon title for off-screen icons.
parent
0bc93684
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
28 deletions
+29
-28
winpos.c
dlls/user32/winpos.c
+29
-28
No files found.
dlls/user32/winpos.c
View file @
49a5db38
...
...
@@ -660,42 +660,43 @@ BOOL WINPOS_RedrawIconTitle( HWND hWnd )
/***********************************************************************
* WINPOS_ShowIconTitle
*/
static
BOOL
WINPOS_ShowIconTitle
(
HWND
hwnd
,
BOOL
bShow
)
static
void
WINPOS_ShowIconTitle
(
HWND
hwnd
,
BOOL
bShow
)
{
if
(
!
GetPropA
(
hwnd
,
"__wine_x11_managed"
))
{
WND
*
win
=
WIN_GetPtr
(
hwnd
);
HWND
title
=
0
;
WND
*
win
=
WIN_GetPtr
(
hwnd
);
HWND
title
=
0
;
TRACE
(
"%p %i
\n
"
,
hwnd
,
(
bShow
!=
0
)
);
TRACE
(
"%p %i
\n
"
,
hwnd
,
(
bShow
!=
0
)
);
if
(
!
win
||
win
==
WND_OTHER_PROCESS
||
win
==
WND_DESKTOP
)
return
FALSE
;
title
=
win
->
icon_title
;
WIN_ReleasePtr
(
win
);
if
(
!
win
||
win
==
WND_OTHER_PROCESS
||
win
==
WND_DESKTOP
)
return
;
if
(
win
->
rectWindow
.
left
==
-
32000
||
win
->
rectWindow
.
top
==
-
32000
)
{
TRACE
(
"not showing title for hidden icon %p
\n
"
,
hwnd
);
bShow
=
FALSE
;
}
else
title
=
win
->
icon_title
;
WIN_ReleasePtr
(
win
);
if
(
bShow
)
if
(
bShow
)
{
if
(
!
title
)
{
if
(
!
title
)
{
title
=
ICONTITLE_Create
(
hwnd
);
if
(
!
(
win
=
WIN_GetPtr
(
hwnd
))
||
win
==
WND_OTHER_PROCESS
)
{
DestroyWindow
(
title
);
return
FALSE
;
}
win
->
icon_title
=
title
;
WIN_ReleasePtr
(
win
);
}
if
(
!
IsWindowVisible
(
title
))
title
=
ICONTITLE_Create
(
hwnd
);
if
(
!
(
win
=
WIN_GetPtr
(
hwnd
))
||
win
==
WND_OTHER_PROCESS
)
{
SendMessageW
(
title
,
WM_SHOWWINDOW
,
TRUE
,
0
);
SetWindowPos
(
title
,
0
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOZORDER
|
SWP_SHOWWINDOW
);
DestroyWindow
(
title
);
return
;
}
}
else
if
(
title
)
ShowWindow
(
title
,
SW_HIDE
);
win
->
icon_title
=
title
;
WIN_ReleasePtr
(
win
);
}
if
(
!
IsWindowVisible
(
title
))
{
SendMessageW
(
title
,
WM_SHOWWINDOW
,
TRUE
,
0
);
SetWindowPos
(
title
,
0
,
0
,
0
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOMOVE
|
SWP_NOACTIVATE
|
SWP_NOZORDER
|
SWP_SHOWWINDOW
);
}
}
return
FALSE
;
else
if
(
title
)
ShowWindow
(
title
,
SW_HIDE
)
;
}
/*******************************************************************
...
...
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