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
834670aa
Commit
834670aa
authored
Mar 28, 2008
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 'Blackout screens' on multi-screen setups
parent
982b7c40
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
13 deletions
+21
-13
modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/embeddedwindow.m
+5
-4
modules/gui/macosx/misc.m
modules/gui/macosx/misc.m
+15
-8
modules/gui/macosx/vout.m
modules/gui/macosx/vout.m
+1
-1
No files found.
modules/gui/macosx/embeddedwindow.m
View file @
834670aa
/*****************************************************************************
* embeddedwindow.m: MacOS X interface module
*****************************************************************************
* Copyright (C) 2005-200
7
the VideoLAN team
* Copyright (C) 2005-200
8
the VideoLAN team
* $Id$
*
* Authors: Benjamin Pracht <bigben at videolan dot org>
* Felix Paul Kühne <fkuehne at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -193,7 +194,7 @@
NSRect
screen_rect
;
NSRect
rect
;
vout_thread_t
*
p_vout
=
vlc_object_find
(
VLCIntf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
BOOL
blackout_other_displays
=
var_GetBool
(
p_vout
,
"macosx-black"
);
BOOL
blackout_other_displays
=
config_GetInt
(
VLCIntf
,
"macosx-black"
);
screen
=
[
NSScreen
screenWithDisplayID
:(
CGDirectDisplayID
)
var_GetInteger
(
p_vout
,
"video-device"
)];
...
...
@@ -213,8 +214,8 @@
[
NSCursor
setHiddenUntilMouseMoves
:
YES
];
if
(
blackout_other_displays
)
[
screen
blackoutOtherScreens
];
/* We should do something like [screen blackoutOtherScreens]; */
if
(
blackout_other_displays
)
[
screen
blackoutOtherScreens
];
/* Only create the o_fullscreen_window if we are not in the middle of the zooming animation */
if
(
!
o_fullscreen_window
)
...
...
modules/gui/macosx/misc.m
View file @
834670aa
/*****************************************************************************
* misc.m: code not specific to vlc
*****************************************************************************
* Copyright (C) 2003-200
7
the VideoLAN team
* Copyright (C) 2003-200
8
the VideoLAN team
* $Id$
*
* Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Felix Paul Khne <fkuehne at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -21,12 +22,13 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include <Cocoa/Cocoa.h>
#import <Cocoa/Cocoa.h>
#import <QuickTime/QuickTime.h>
#i
nclude
"intf.h"
/* VLCApplication */
#i
nclude
"misc.h"
#i
nclude
"playlist.h"
#i
nclude
"controls.h"
#i
mport
"intf.h"
/* VLCApplication */
#i
mport
"misc.h"
#i
mport
"playlist.h"
#i
mport
"controls.h"
/*****************************************************************************
* NSAnimation (VLCAdditions)
...
...
@@ -113,7 +115,6 @@ static NSMutableArray *blackoutWindows = NULL;
[
blackoutWindows
makeObjectsPerformSelector
:
@selector
(
close
)];
[
blackoutWindows
removeAllObjects
];
for
(
i
=
0
;
i
<
[[
NSScreen
screens
]
count
];
i
++
)
{
NSScreen
*
screen
=
[[
NSScreen
screens
]
objectAtIndex
:
i
];
...
...
@@ -124,7 +125,7 @@ static NSMutableArray *blackoutWindows = NULL;
continue
;
screen_rect
=
[
screen
frame
];
screen_rect
.
origin
.
x
=
screen_rect
.
origin
.
y
=
0
.
0
f
;
screen_rect
.
origin
.
x
=
screen_rect
.
origin
.
y
=
0
;
/* blackoutWindow alloc strategy
- The NSMutableArray blackoutWindows has the blackoutWindow references
...
...
@@ -135,10 +136,14 @@ static NSMutableArray *blackoutWindows = NULL;
[
blackoutWindow
setBackgroundColor
:[
NSColor
blackColor
]];
[
blackoutWindow
setLevel
:
NSFloatingWindowLevel
];
/* Disappear when Expose is triggered */
[
blackoutWindow
displayIfNeeded
];
[
blackoutWindow
orderFront
:
self
animate
:
YES
];
[
blackoutWindows
addObject
:
blackoutWindow
];
[
blackoutWindow
release
];
if
(
[
screen
isMainScreen
]
)
SetSystemUIMode
(
kUIModeAllHidden
,
kUIOptionAutoShowMenuBar
);
}
}
...
...
@@ -151,6 +156,8 @@ static NSMutableArray *blackoutWindows = NULL;
VLCWindow
*
blackoutWindow
=
[
blackoutWindows
objectAtIndex
:
i
];
[
blackoutWindow
closeAndAnimate
:
YES
];
}
SetSystemUIMode
(
kUIModeNormal
,
0
);
}
@end
...
...
modules/gui/macosx/vout.m
View file @
834670aa
...
...
@@ -10,7 +10,7 @@
* Derk-Jan Hartman <hartman at videolan dot org>
* Eric Petit <titer@m0k.org>
* Benjamin Pracht <bigben at videolan dot org>
* Felix Kühne <fkuehne at videolan dot org>
* Felix
Paul
Kühne <fkuehne at videolan dot org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
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