macos: Bring RDP window to front
authorMandar <01.mandar@gmail.com>
Fri, 27 Jul 2018 10:24:57 +0000 (15:54 +0530)
committerGitHub <noreply@github.com>
Fri, 27 Jul 2018 10:24:57 +0000 (15:54 +0530)
To bring RDP window on top of all the windows

client/Mac/cli/AppDelegate.m

index ec40573..ed5bfca 100644 (file)
@@ -290,6 +290,8 @@ void mac_set_view_size(rdpContext* context, MRDPView* view)
        [[view window] setContentMaxSize:innerRect.size];
        // set window to given area
        [[view window] setFrame:outerRect display:YES];
+       // set window to front
+       [NSApp activateIgnoringOtherApps:YES];
 
        if (context->settings->Fullscreen)
                [[view window] toggleFullScreen:nil];