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
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;
...
@@ -165,10 +165,22 @@ static NSMapTable *VLCAdditions_userInfo = NULL;
static
NSMutableArray
*
blackoutWindows
=
NULL
;
static
NSMutableArray
*
blackoutWindows
=
NULL
;
static
bool
b_old_spaces_style
=
YES
;
+
(
void
)
load
+
(
void
)
load
{
{
/* init our fake object attribute */
/* init our fake object attribute */
blackoutWindows
=
[[
NSMutableArray
alloc
]
initWithCapacity
:
1
];
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
+
(
NSScreen
*
)
screenWithDisplayID
:
(
CGDirectDisplayID
)
displayID
...
@@ -185,10 +197,10 @@ static NSMutableArray *blackoutWindows = NULL;
...
@@ -185,10 +197,10 @@ static NSMutableArray *blackoutWindows = NULL;
-
(
BOOL
)
hasMenuBar
-
(
BOOL
)
hasMenuBar
{
{
if
(
OSX_REDACTED
)
if
(
b_old_spaces_style
)
return
YES
;
else
return
([
self
displayID
]
==
[[[
NSScreen
screens
]
objectAtIndex
:
0
]
displayID
]);
return
([
self
displayID
]
==
[[[
NSScreen
screens
]
objectAtIndex
:
0
]
displayID
]);
else
return
YES
;
}
}
-
(
BOOL
)
hasDock
-
(
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