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
d1a1f7d6
Commit
d1a1f7d6
authored
Oct 24, 1999
by
Noomen Hamza
Committed by
Alexandre Julliard
Oct 24, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Popup windows will be hidden when we minimize a main frame or shown
when we maximize or restore a minimized main frame.
parent
6966c65b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
nonclient.c
windows/nonclient.c
+6
-0
event.c
windows/x11drv/event.c
+6
-0
No files found.
windows/nonclient.c
View file @
d1a1f7d6
...
...
@@ -2729,14 +2729,20 @@ LONG NC_HandleSysCommand( HWND hwnd, WPARAM16 wParam, POINT16 pt )
break
;
case
SC_MINIMIZE
:
if
(
hwnd
==
GetForegroundWindow
())
ShowOwnedPopups
(
hwnd
,
FALSE
);
ShowWindow
(
hwnd
,
SW_MINIMIZE
);
break
;
case
SC_MAXIMIZE
:
if
(
IsIconic
(
hwnd
)
&&
hwnd
==
GetForegroundWindow
())
ShowOwnedPopups
(
hwnd
,
TRUE
);
ShowWindow
(
hwnd
,
SW_MAXIMIZE
);
break
;
case
SC_RESTORE
:
if
(
IsIconic
(
hwnd
)
&&
hwnd
==
GetForegroundWindow
())
ShowOwnedPopups
(
hwnd
,
TRUE
);
ShowWindow
(
hwnd
,
SW_RESTORE
);
break
;
...
...
windows/x11drv/event.c
View file @
d1a1f7d6
...
...
@@ -1737,7 +1737,10 @@ void EVENT_MapNotify( HWND hWnd, XMapEvent *event )
WND
*
wndFocus
=
WIN_FindWndPtr
(
hwndFocus
);
WND
*
pWnd
=
WIN_FindWndPtr
(
hWnd
);
if
(
pWnd
->
flags
&
WIN_MANAGED
)
{
pWnd
->
dwStyle
&=
~
WS_MINIMIZE
;
ShowOwnedPopups
(
hWnd
,
TRUE
);
}
WIN_ReleaseWndPtr
(
pWnd
);
if
(
hwndFocus
&&
IsChild
(
hWnd
,
hwndFocus
))
...
...
@@ -1759,7 +1762,10 @@ void EVENT_UnmapNotify( HWND hWnd, XUnmapEvent *event )
{
EndMenu
();
if
(
pWnd
->
dwStyle
&
WS_VISIBLE
)
{
pWnd
->
dwStyle
|=
WS_MINIMIZE
;
ShowOwnedPopups
(
hWnd
,
FALSE
);
}
}
WIN_ReleaseWndPtr
(
pWnd
);
}
...
...
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