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
0d4a26ef
Commit
0d4a26ef
authored
May 16, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
May 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Use window server's window list to find next window to offer focus to.
... rather than our orderedWineWindows array, which is going away.
parent
6d4098eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
cocoa_app.m
dlls/winemac.drv/cocoa_app.m
+14
-1
No files found.
dlls/winemac.drv/cocoa_app.m
View file @
0d4a26ef
...
...
@@ -322,9 +322,21 @@ int macdrv_err_on;
{
if
(
event
->
window_got_focus
.
serial
==
windowFocusSerial
)
{
NSMutableArray
*
windows
=
[
keyWindows
mutableCopy
];
NSNumber
*
windowNumber
;
WineWindow
*
window
;
for
(
windowNumber
in
[
NSWindow
windowNumbersWithOptions
:
NSWindowNumberListAllSpaces
])
{
window
=
(
WineWindow
*
)[
NSApp
windowWithWindowNumber
:[
windowNumber
integerValue
]];
if
([
window
isKindOfClass
:[
WineWindow
class
]]
&&
[
window
screen
]
&&
!
[
windows
containsObject
:
window
])
[
windows
addObject
:
window
];
}
triedWindows
=
(
NSMutableSet
*
)
event
->
window_got_focus
.
tried_windows
;
[
triedWindows
addObject
:(
WineWindow
*
)
event
->
window
];
for
(
NSWindow
*
window
in
[
keyWindows
arrayByAddingObjectsFromArray
:[
self
orderedWineWindows
]]
)
for
(
window
in
windows
)
{
if
(
!
[
triedWindows
containsObject
:
window
]
&&
[
window
canBecomeKeyWindow
])
{
...
...
@@ -333,6 +345,7 @@ int macdrv_err_on;
}
}
triedWindows
=
nil
;
[
windows
release
];
}
}
...
...
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