Merge pull request #4772 from Mandar-Shinde/master

macosx: Bring newly launched freerdp window to front
This commit is contained in:
akallabeth 2018-07-30 10:37:50 +02:00 committed by GitHub
commit 6b07a3f2be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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