Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#177 Entire First Screen Goes Black in Full Screen Mode

open
nobody
Interface (96)
5
2006-01-24
2006-01-24
Anonymous
No

I have two monitors on my viewer machine, and I want the second
monitor to be a copy of my second mac, so I can just move the mouse
between the two screens to control both computers. but for some
reason, monitor 1 (which has the menu bar etc) goes all black when i put
it into full screen mode. how can i fix that or do i have to wait for a bug
fix?

Discussion

  • Brendon McLean
    Brendon McLean
    2006-02-02

    Logged In: YES
    user_id=544175

    I second that. Although I'm guessing its a lot more complicated. VLC manages
    to pull it off somehow though and so does MPlayer.

     
  • Srini Turaga
    Srini Turaga
    2006-03-26

    Logged In: YES
    user_id=1478174

    Someone appears to have figured out the fix. He posted code
    on his blog.

    http://blogs.oracle.com/duffblog/2006/03/19

    I don't know enough to submit a patch, though. Sorry!

     
  • Logged In: NO

    Brian Duff at Oracle posted an edit for this here:

    http://blogs.oracle.com/duffblog/2006/03/19

    That edit needs a minor additional tweak to handle exiting back to windowed
    mode from fullscreen. Here's a patch (to RFBConnection.m) that incorporates
    his code and an inexpert tweak to cleanly exit fullscreen:

    1070,1077c1070,1072
    <
    < /* This needs to be patched, too, to match the patch below to the
    GCDisplayCapture call
    < Otherwise, the screen isn't relinquished when switching out of
    fullscreen mode */
    <
    < if (CGReleaseAllDisplays() != kCGErrorSuccess) {
    < NSLog( @"Couldn't release the display!" );
    < }
    <
    ---
    > if (CGDisplayRelease( kCGDirectMainDisplay ) != kCGErrorSuccess) {
    > NSLog( @"Couldn't release the main display!" );
    > }
    1082c1077
    < screen:[NSScreen
    mainScreen]];
    ---
    > screen:[NSScreen
    mainScreen]];
    1103,1111c1098,1099
    <
    <
    < /* Revised call to support fullscreen display on multiple desktops
    properly
    < From: http://blogs.oracle.com/duffblog/2006/03/19 */
    < NSScreen* mainScreen = [NSScreen mainScreen];
    < NSDictionary* screenInfo = [mainScreen deviceDescription];
    < NSNumber* mainScreenID = [screenInfo
    objectForKey:@"NSScreenNumber"];
    < if (CGDisplayCapture( [mainScreenID longValue] ) !=
    kCGErrorSuccess) {
    < NSLog( @"Couldn't capture the display!" );
    ---
    > if (CGDisplayCapture( kCGDirectMainDisplay ) != kCGErrorSuccess)
    {
    > NSLog( @"Couldn't capture the main display!" );
    1113d1100
    <

     
  • Leif Nelson
    Leif Nelson
    2006-05-05

    Logged In: YES
    user_id=763728

    I submitted Brian's patch...

    http://sourceforge.net/tracker/index.php?
    func=detail&aid=1482592&group_id=64347&atid=507161

    --Leif

     
  • Logged In: NO

    Check the patch [ 1482592 ] multiple display patch. I solves the issue. A dmg is available as well.