macos: Bring RDP window to front

To bring RDP window on top of all the windows
This commit is contained in:
Mandar 2018-07-27 15:54:57 +05:30 committed by GitHub
parent 6bd1a7d2a5
commit 093fe83386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View 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];