Browse Source

Move window to front on full screen

This should be happening implicitly, but isn't always for some reason on
macOS 13.
tags/v1.12.90
Pierre Ossman 1 year ago
parent
commit
1d1550fb35
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      vncviewer/cocoa.mm

+ 5
- 0
vncviewer/cocoa.mm View 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;
}


Loading…
Cancel
Save