]> source.dussan.org Git - tigervnc.git/commitdiff
Move window to front on full screen
authorPierre Ossman <ossman@cendio.se>
Thu, 15 Dec 2022 15:03:13 +0000 (16:03 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 15 Dec 2022 15:03:13 +0000 (16:03 +0100)
This should be happening implicitly, but isn't always for some reason on
macOS 13.

vncviewer/cocoa.mm

index e8b202d6f2e690a387481441a5535ff0e4d82322..d801a106e33981ff2f9d0ce12ab9ec5573df8031 100644 (file)
@@ -107,6 +107,11 @@ int cocoa_capture_displays(Fl_Window *win)
 
   [nsw setLevel:CGShieldingWindowLevel()];
 
+  // We're not getting put in front of the shielding window in many
+  // cases on macOS 13, despite setLevel: being documented as also
+  // pushing the window to the front. So let's explicitly move it.
+  [nsw orderFront:nsw];
+
   return 0;
 }