grey bar in full screen

Watching certain videos in full screen is leaving a grey bar across the top of the screen. I've tried connecting my macbook pro to 3 different tvs and get same grey bar.


Using Netflix through Chrome; I've tried putting Chrome into full screen and then pressing full screen on the Netflix player. Leaves a grey bar. Leaving Chrome in standard screen and then pressing full screen on Netflix player leaves a grey bar. Kind of where the menu bar would be.

Watching certain other online streaming is fine. Use a website with flash based player which enters full screen perfectly well and covers the whole screen, leaving no menu bar or grey bar.


Using VLC player, it occasionally covers the whole screen but more often than not leaves grey bar across top of the page. Tried checking and unchecking 'Use the native fullscreen mode on OS X Lion'. This doesn't seem to make much difference. Still variable as to whether the grey bar is across the top of the screen when entering full screen.


Any ideas? Anyone having similar issue? Only since upgrading to Mavericks with the new menu bar system. I like having individual desktops when on dual display so don't really want to lose that feature. Only experienced it through Chrome and VLC so far, would just like to pinpoint how to make video through the browser and VLC completely full screen.

MacBook Pro, OS X Mavericks (10.9), 2.7GHz Intel Core i7 16GB

Posted on Oct 28, 2013 4:21 PM

Reply
18 replies

Mar 2, 2014 6:34 PM in response to drewy

I figured out a way to so fix some of the problem. It doesn't work on youtube/adobe flash in Firefox, but it works on Firefox, itunes, and VLC. I put the solution into a script that also does normal fullscreen toggling. So if you add the script to a keyboard shortcut, or, like me, to the EJECT key, the script will fix the problem if there is any, switch to window mode if in fullscreen, and switch to fullscreen if in window mode.


I used Accessibility Inspector ( https://developer.apple.com/library/mac/documentation/Accessibility/Conceptual/A ccessibilityMacOSX/OSXAXTesting/OSXAXTestingApps.html) and found that one of the attributes AXPosition missed on the y-axis by 22 pixels. If you amend that value, the black bar will be disappear.


Here is the script:




-- This script is meant to replace the default fullscreen keyboard shortcut.

-- If the current app is in window mode, this script will bring it to

-- fullscreen mode, provided the function is available.

-- If it's already fullscreen mode correctly, the script will exit fullscreen.

-- More importantly, if a black bar is displayed at where the hidden menu bar used

-- to be, this script will fix the problem.



-- Be ware: 1) The script, in its current form, only works on one display.

-- 2) The script requires manually entering the dimension of that display. The default

-- is for 1080p 16:9 ratio display.

-- 3) On the plus side, it works in both landscape and portrait mode.

-- 4) As far as I can tell, the script doesn't work on youtube w/ Firefox. It does the trick on

-- Firefox, VLC, and iTunes. I don't use Chrome or Netflix.


global longEdge, shortEdge

set longEdge to 1920

set shortEdge to 1080


global xA, yA, xB, yB, Fx

-- {xA, yA, xB, yB,}: the bounds of the window

-- The menubar seems to be always 22 pixels in height. is that true? If it is, the script

-- can be simpler.

set Fx to 0

-- Fx: Screen modes: 0: Windowed. 1: Fullscreen. 2: Fullscreen with black bar.


-- The following block of code tries to figure out the size and position of the application.

set currentApp to (path tofrontmost applicationasUnicode text)

tell applicationcurrentApp

set contentPosition to bounds of window 1

set {xA, yA, xB, yB} to contentPosition

end tell



-- Figuring out if it's already in fullscreen

-- Credits here: https://discussions.apple.com/thread/5212352

tell application "System Events" to tell (first process whose frontmost is true)

if front window exists then

tell front window

if value of attribute "AXFullScreen" is true then

set Fx to 1

else

set Fx to 0

end if

end tell

end if

end tell


-- Now figuring out if there is a black bar

if Fx is 1 then

if xA > xB then

set FxWidth to xA - xB

else

set FxWidth to xB - xA

end if

if yA > yB then

set FxHeight to yA - yB

else

set FxHeight to yB - yA

end if


-- In landscape mode

if FxWidth is equal to longEdge then

if FxHeight is not equal to shortEdge then

set Fx to 2

set yA to yB - shortEdge

end if

else


-- In portrait mode

if FxWidth is equal to shortEdge then

if FxHeight is not equal to longEdge then

set Fx to 2

set yA to yB - longEdge

end if

end if

end if

end if


-- Safari Exception

if currentApp is "OS X Mavericks:Applications:Safari.app:" then

if Fx is 2 then

set Fx to 1

end if

end if


-- Add others:

-- tell application currentApp

-- display dialog currentApp

-- end tell


-- alternate among modes

-- 1) go full screen

if Fx is 0 then

tell application "System Events" to tell (first process whose frontmost is true)

if front window exists then

tell front window

if value of attribute "AXFullScreen" is false then

set value of attribute "AXFullScreen" to true

end if

end tell

end if

end tell

end if

-- 2) exit fullscreen

if Fx is 1 then

tell application "System Events" to tell (first process whose frontmost is true)

if front window exists then

tell front window

if value of attribute "AXFullScreen" is true then

set value of attribute "AXFullScreen" to false

end if

end tell

end if

end tell

end if

-- 3) fix black bar

if Fx is 2 then

tell applicationcurrentApp

set bounds of window 1 to {xA, yA, xB, yB}

end tell

end if


-- Bind the script to a keyboard shortcut or a key. Voila.

Oct 28, 2013 9:56 PM in response to drewy

Exact same issue since installing Mavericks. Initially it would show the full menu bar .. then after reading some forum posts I tried unchecking the 'use native' setting and that worked for a wee bit ... but now all i get is the grey placeholder bar on top, and in order to keep the AR of the video, there is now also a black space to the left ... very annoying when screening a movie on projector ...


using VLC 2.0.7 (trying to get to 2.0.8, but that 42MB file takes forever to DL) ...

Oct 31, 2013 10:56 PM in response to drewy

Was also having this issue since upgrading to Mavericks and it was really throwing me off as I use my laptop to stream many things (including Netflix to my big screen). Searched and searched, and finally, came across an easy fix located her that solved everything: http://www.mactrast.com/2013/10/disable-second-menu-bar-os-x-mavericks/


The problem all lies in the second status bar that, while helpful for some presentations etc. really just gets in the way most times. It was offsetting everything in Netflix so that the mouse wasn't lining up and it wouldn't fade out properly.


Essentially, all you do is go to System Settings->Mission Control->Uncheck "Displays have separate Spaces" and then log off and back on and viola, if it was anything like my problem it should be fixed now.


Maybe that helps??

Nov 1, 2013 5:32 AM in response to thegodawfulcynic

It does solve the issue. But it means you're back to the old issue of having a blank screen on the laptop when you go fullscreen on the second display, having multiple desktops on dual displays is a good step up from before. Just seems annoying that certain websites will go fullscreen, within chrome being fullscreen, with no issues. But netflix for some reason has a grey bar across the top. As does VLC; not every time, but most of the time. Just can't work out why. Very much talking about video playback rather than anything else.

Nov 1, 2013 10:48 AM in response to drewy

Totally, and I see your point there, and I fully agree that it is such a hassle. From what I've read, Mavericks is really trying to push for native Mac Apps, and so since Netflix has not released one (I am unsure if VLC player has) this may also be the issue. It may be more of a "wait on the developer" problem than a "wait on an apple update" solution.


I also agree that it is great to have the bars on both displays, but for now, this is a good method if you are being plagued by the annoying full-screen issues.

Dec 30, 2013 10:31 PM in response to drewy

I had the same problem with VLC, but I realized all I had to do was expand the video window by pressing the green colored circle with the "+" symbol (top left corner) in the second monitor/projector and then press the full screen arrows (top right corner) and it works everytime. No grey bar. I didn't need to change anything in preferences. I don't use Netflix, so I'm not sure if it works the same. Hope this helps.

Jan 1, 2014 11:43 AM in response to drewy

I have the same issue and have figured out a little "jugaad" (workaround) for it.


I use a multiple monitor setup and having a black screen when going full screen on another was something I wasn't going back to, especially after waiting for this update in Mavericks. A bit of hit and miss and, there you go:


1. Open VLC and drag it to the second or third screen space on your external display (If you can't see any, create them and make sure no application is running on fullscreen on the first space on the ext. display, Don't leave VLC on fullscreen just yet). NOTE: THE SPACE RUNNING VLC MUST BE THE LAST SPACE ON THE EXT. DISPLAY. IT WON'T WORK OTHERWISE.


2. Create multiple spaces on your Mac display and then go to the second or third one (no application should be on full screen here, although this wasn't necessary for all instances I tried it.).


3. Now, click on anything on your primary/mac display. Note: Sometimes I noticed that the video must be "playing" on VLC (Not in fullscreen mode) on the external display already for this to work. Most of the times it works in pause mode as well.


4. The top menu bar will be grayed out on your external screen and active on your home screen.


5. Click on the expand screen arrows on the top right corner of the VLC window (without clicking anywhere else on that display before that!).


6. Voila!


Source(s): A lot of free time, love for VLC and Macintosh.


EDIT: I hope this fix gets the devs some insight into the problem. It'd be much easier if we didn't have to do this!


Message was edited by: arjunsuri

May 1, 2014 11:07 AM in response to fartheraway

I tried your solution, but when I add this script as a service and try it with firefox, I get a message that say that there was an error with it. Any idea ? How did you do ? Thx


EDIT: nevermind, I didn't see that each app must be checked in accessibility option. Also, it needs to be activated twice: once for fullscreen and another once in fullscreen. Anyway, thanks it works 🙂

May 8, 2014 4:47 AM in response to jsfid

This one is trimmed down for your purpose. I threw out the conditionals, so it would work in most cases.



global longEdge, shortEdge

set longEdge to 1920

set shortEdge to 1080


global xA, yA, xB, yB



set currentApp to (path tofrontmost applicationasUnicode text)

tell applicationcurrentApp

set contentPosition to bounds of window 1

set {xA, yA, xB, yB} to contentPosition

end tell


-- Detect grey bar size

if xA > xB then

set FxWidth to xA - xB

else

set FxWidth to xB - xA

end if

if yA > yB then

set FxHeight to yA - yB

else

set FxHeight to yB - yA

end if


if FxWidth is equal to longEdge then


-- In landscape mode

if FxHeight is not equal to shortEdge then

set yA to yB - shortEdge

tell applicationcurrentApp

set bounds of window 1 to {xA, yA, xB, yB}

end tell

end if

else


-- In portrait mode

if FxWidth is equal to shortEdge then

if FxHeight is not equal to longEdge then

set yA to yB - longEdge

tell applicationcurrentApp

set bounds of window 1 to {xA, yA, xB, yB}

end tell

end if

end if

end if

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

grey bar in full screen

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.