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
6447e8e7
Commit
6447e8e7
authored
Dec 31, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Dec 31, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Defer adjusting window levels while the process is hidden.
While the process is hidden, it can't get a list of its windows which would be visible were it not hidden.
parent
3cd67795
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+12
-2
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
6447e8e7
...
...
@@ -488,8 +488,8 @@ int macdrv_err_on;
-
(
void
)
adjustWindowLevels
:
(
BOOL
)
active
{
NSArray
*
windowNumbers
=
[
NSWindow
windowNumbersWithOptions
:
0
]
;
NSMutableArray
*
wineWindows
=
[[
NSMutableArray
alloc
]
initWithCapacity
:[
windowNumbers
count
]]
;
NSArray
*
windowNumbers
;
NSMutableArray
*
wineWindows
;
NSNumber
*
windowNumber
;
NSUInteger
nextFloatingIndex
=
0
;
__block
NSInteger
maxLevel
=
NSIntegerMin
;
...
...
@@ -497,6 +497,11 @@ int macdrv_err_on;
__block
WineWindow
*
prev
=
nil
;
WineWindow
*
window
;
if
([
NSApp
isHidden
])
return
;
windowNumbers
=
[
NSWindow
windowNumbersWithOptions
:
0
];
wineWindows
=
[[
NSMutableArray
alloc
]
initWithCapacity
:[
windowNumbers
count
]];
// For the most part, we rely on the window server's ordering of the windows
// to be authoritative. The one exception is if the "floating" property of
// one of the windows has been changed, it may be in the wrong level and thus
...
...
@@ -2127,6 +2132,11 @@ int macdrv_err_on;
[
self
releaseMouseCapture
];
}
-
(
void
)
applicationDidUnhide
:
(
NSNotification
*
)
aNotification
{
[
self
adjustWindowLevels
];
}
-
(
BOOL
)
applicationShouldHandleReopen
:
(
NSApplication
*
)
theApplication
hasVisibleWindows
:
(
BOOL
)
flag
{
// Note that "flag" is often wrong. WineWindows are NSPanels and NSPanels
...
...
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