Files
macvim-mirror/runtime
Yee Cheng Chin 6d044f9344 Fix non-native full screen sizing, fix 'fuoptions', allow menus
Fix misc non-native full screen sizing issues. Previously, in certain
cases such as using non-native full screen in a secondary monitor, the
non-native full screen window would be offsetted and half the window
shown offscreen, making it hard to use.

The bug is that we call `resizeVimView` and `centerView` immediately
after resizing Vim's frame, but the frame resize only asynchronously
calls processInputQueueDidFinish in MMWindowController, which now
actually handles all the frame resizing logic. `centerView` was
therefore calculating using the wrong info, and tried to center the view
on wrong coordinates. Just fix this by removing those two functions as
they are no longer needed as processInputQueueDidFinish already does
everything.

Also, fix `fuopts` to support unsetting maxvert/maxhorz again (this was
what `centerView` was trying to do). Simply add hooks to
processInputQueueDidFinish to query the non-native full screen window
for what the desired size is, instead of just assuming we wan to fill
the whole frame.

* Fix #509

Also, add a new option `MMNonNativeFullScreenShowMenu` to allow showing
the menu bar instead of auto-hiding it while using non-native full
screen as it could be useful to show it, and less jarring to switch
among different apps.

Move preferences around so non-native full screen is now a "regular"
option under Apperance instead of Advanced. Also expose the non-native
show menu option so it's exposed to users.

This is a follow-up to #1155.
2021-02-04 06:02:38 -08:00
..
2021-01-25 21:14:57 +01:00
2021-01-25 21:14:57 +01:00
2020-11-29 14:36:24 +01:00
2020-12-23 13:56:35 +01:00
2021-01-11 19:40:15 +01:00
2020-11-29 14:36:24 +01:00
2021-01-25 21:14:57 +01:00
2020-12-10 21:11:27 +01:00
2021-01-25 21:14:57 +01:00
2020-10-11 13:57:40 +02:00
2021-01-25 21:14:57 +01:00
2020-11-29 14:36:24 +01:00
2020-11-21 13:16:30 +01:00
2020-11-29 14:36:24 +01:00