Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2e8f8c2f
Commit
2e8f8c2f
authored
Sep 15, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: use old logic to hide menu bar if old spaces system selected im mavericks
parent
03c69b44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+15
-3
No files found.
modules/gui/macosx/misc.m
View file @
2e8f8c2f
...
...
@@ -165,10 +165,22 @@ static NSMapTable *VLCAdditions_userInfo = NULL;
static
NSMutableArray
*
blackoutWindows
=
NULL
;
static
bool
b_old_spaces_style
=
YES
;
+
(
void
)
load
{
/* init our fake object attribute */
blackoutWindows
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
1
];
if
(
OSX_REDACTED
)
{
NSUserDefaults
*
userDefaults
=
[[
NSUserDefaults
alloc
]
init
];
[
userDefaults
addSuiteNamed
:
@"com.apple.spaces"
];
/* this is system settings -> mission control -> monitors using different spaces */
NSNumber
*
o_span_displays
=
[
userDefaults
objectForKey
:
@"spans-displays"
];
b_old_spaces_style
=
[
o_span_displays
boolValue
];
[
userDefaults
release
];
}
}
+
(
NSScreen
*
)
screenWithDisplayID
:
(
CGDirectDisplayID
)
displayID
...
...
@@ -185,10 +197,10 @@ static NSMutableArray *blackoutWindows = NULL;
-
(
BOOL
)
hasMenuBar
{
if
(
OSX_REDACTED
)
return
YES
;
else
if
(
b_old_spaces_style
)
return
([
self
displayID
]
==
[[[
NSScreen
screens
]
objectAtIndex
:
0
]
displayID
]);
else
return
YES
;
}
-
(
BOOL
)
hasDock
...
...
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