Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
87937a2d
Commit
87937a2d
authored
Oct 20, 2012
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fspanel: give up focus to the right fullscreen window
parent
c2fedcc4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
10 deletions
+17
-10
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+1
-1
modules/gui/macosx/Windows.m
modules/gui/macosx/Windows.m
+1
-1
modules/gui/macosx/fspanel.h
modules/gui/macosx/fspanel.h
+4
-1
modules/gui/macosx/fspanel.m
modules/gui/macosx/fspanel.m
+11
-7
No files found.
modules/gui/macosx/MainWindow.m
View file @
87937a2d
...
...
@@ -958,7 +958,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
// But this creates some problems when leaving fs over remote intfs, so activate app here.
[
NSApp
activateIgnoringOtherApps
:
YES
];
[
o_fspanel
setVoutWasUpdated
:
(
int
)[[
self
screen
]
displayID
]
];
[
o_fspanel
setVoutWasUpdated
:
self
];
[
o_fspanel
setActive
:
nil
];
}
...
...
modules/gui/macosx/Windows.m
View file @
87937a2d
...
...
@@ -656,7 +656,7 @@
[
o_fullscreen_window
setAcceptsMouseMovedEvents
:
YES
];
/* tell the fspanel to move itself to front next time it's triggered */
[[[
VLCMainWindow
sharedInstance
]
fsPanel
]
setVoutWasUpdated
:
(
int
)[[
o_fullscreen_window
screen
]
displayID
]
];
[[[
VLCMainWindow
sharedInstance
]
fsPanel
]
setVoutWasUpdated
:
o_fullscreen_window
];
[[[
VLCMainWindow
sharedInstance
]
fsPanel
]
setActive
:
nil
];
if
([
self
isVisible
])
...
...
modules/gui/macosx/fspanel.h
View file @
87937a2d
...
...
@@ -22,6 +22,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
@class
VLCWindow
;
@interface
VLCFSPanel
:
NSWindow
{
...
...
@@ -36,6 +37,8 @@
BOOL
b_displayed
;
BOOL
b_voutWasUpdated
;
int
i_device
;
VLCWindow
*
o_vout_window
;
}
-
(
id
)
initWithContentRect
:
(
NSRect
)
contentRect
styleMask
:
(
NSUInteger
)
aStyle
...
...
@@ -70,7 +73,7 @@
-
(
void
)
mouseDown
:
(
NSEvent
*
)
theEvent
;
-
(
void
)
mouseDragged
:
(
NSEvent
*
)
theEvent
;
-
(
void
)
setVoutWasUpdated
:
(
int
)
i_screen
;
-
(
void
)
setVoutWasUpdated
:
(
VLCWindow
*
)
o_window
;
@end
@interface
VLCFSPanelView
:
NSView
...
...
modules/gui/macosx/fspanel.m
View file @
87937a2d
...
...
@@ -108,6 +108,10 @@
[
hideAgainTimer
invalidate
];
[
hideAgainTimer
release
];
}
if
(
o_vout_window
)
[
o_vout_window
release
];
[
self
setFadeTimer
:
nil
];
[
super
dealloc
];
}
...
...
@@ -236,12 +240,8 @@
-
(
void
)
mouseExited
:(
NSEvent
*
)
theEvent
{
/* give up our focus, so the vout may show us again without letting the user clicking it */
vout_thread_t
*
p_vout
=
getVout
();
if
(
p_vout
)
{
if
(
var_GetBool
(
p_vout
,
"fullscreen"
))
[[[[
VLCMainWindow
sharedInstance
]
videoView
]
window
]
makeKeyWindow
];
vlc_object_release
(
p_vout
);
}
if
(
o_vout_window
&&
var_GetBool
(
pl_Get
(
VLCIntf
),
"fullscreen"
))
[
o_vout_window
makeKeyWindow
];
}
-
(
void
)
hideMouse
...
...
@@ -351,9 +351,13 @@
[
self
setFrameOrigin
:
point
];
}
-
(
void
)
setVoutWasUpdated
:
(
int
)
i_newdevice
;
-
(
void
)
setVoutWasUpdated
:
(
VLCWindow
*
)
o_window
{
b_voutWasUpdated
=
YES
;
if
(
o_vout_window
)
[
o_vout_window
release
];
o_vout_window
=
[
o_window
retain
];
int
i_newdevice
=
(
int
)[[
o_vout_window
screen
]
displayID
];
if
(
i_newdevice
!=
i_device
)
{
i_device
=
i_newdevice
;
[
self
center
];
...
...
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