Commit dee3bc7b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Fix the detached window. Fix fullscreen. Use a borderless window.

The borderless window is nicer IMO. Feel free to object, but this also saves some overhead with fullscreen changing.
parent bd4bd54d
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/ *****************************************************************************/
#import "misc.h"
/***************************************************************************** /*****************************************************************************
* VLCEmbeddedList interface * VLCEmbeddedList interface
*****************************************************************************/ *****************************************************************************/
...@@ -110,26 +111,21 @@ ...@@ -110,26 +111,21 @@
/***************************************************************************** /*****************************************************************************
* VLCVoutWindow interface * VLCVoutWindow interface
*****************************************************************************/ *****************************************************************************/
@interface VLCVoutWindow : NSWindow @interface VLCVoutWindow : VLCWindow
{ {
vout_thread_t * p_vout; vout_thread_t * p_vout;
VLCVoutView * o_view; VLCVoutView * o_view;
NSRect * s_frame; NSRect * s_frame;
vout_thread_t * p_real_vout;
bool b_init_ok; bool b_init_ok;
bool b_black; BOOL fullscreen;
bool b_embedded; NSRect initialFrame;
} }
- (id) initWithVout: (vout_thread_t *) p_vout view: (VLCVoutView *) view - (id) initWithVout: (vout_thread_t *) p_vout view: (VLCVoutView *) view
frame: (NSRect *) s_frame; frame: (NSRect *) s_frame;
- (id)initMainThread: (id) sender; - (id)initMainThread: (id) sender;
- (void)close; - (void)leaveFullscreen;
- (void)closeWindow; - (void)enterFullscreen;
- (id)closeMainThread: (id) sender;
- (id)getVoutView; - (id)getVoutView;
- (BOOL)windowShouldClose:(id)sender;
@end @end
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment