Commit cc730902 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: implemented float-on-top

parent 6cecf393
...@@ -557,8 +557,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -557,8 +557,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (IBAction)fullscreen:(id)sender - (IBAction)fullscreen:(id)sender
{ {
//?! [[VLCCoreInteraction sharedInstance] toggleFullscreen]; [[VLCCoreInteraction sharedInstance] toggleFullscreen];
[self enterFullscreen];
} }
- (IBAction)dropzoneButtonAction:(id)sender - (IBAction)dropzoneButtonAction:(id)sender
......
...@@ -288,11 +288,19 @@ static int Control (vout_display_t *vd, int query, va_list ap) ...@@ -288,11 +288,19 @@ static int Control (vout_display_t *vd, int query, va_list ap)
switch (query) switch (query)
{ {
case VOUT_DISPLAY_CHANGE_FULLSCREEN: case VOUT_DISPLAY_CHANGE_FULLSCREEN:
case VOUT_DISPLAY_CHANGE_WINDOW_STATE:
{ {
/* todo */ /* todo */
return VLC_EGENERIC; return VLC_EGENERIC;
} }
case VOUT_DISPLAY_CHANGE_WINDOW_STATE:
{
unsigned state = va_arg (ap, unsigned);
if( (state & VOUT_WINDOW_STATE_ABOVE) != 0)
[[sys->glView window] setLevel: NSStatusWindowLevel];
else
[[sys->glView window] setLevel: NSNormalWindowLevel];
return VLC_SUCCESS;
}
case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE: case VOUT_DISPLAY_CHANGE_DISPLAY_SIZE:
case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED: case VOUT_DISPLAY_CHANGE_DISPLAY_FILLED:
case VOUT_DISPLAY_CHANGE_ZOOM: case VOUT_DISPLAY_CHANGE_ZOOM:
......
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