neovim-qt icon indicating copy to clipboard operation
neovim-qt copied to clipboard

Strange bug when mix GuiWindowFullScreen and GuiWindowMaximized

Open xarthurx opened this issue 5 years ago • 2 comments

image

Normally, if I start neovim-qt and do F11 which I mapped to toggle between FullScreen mode, it works fine.

However, when using Win + Arrow to either maximize the window or make it half on left/right side, the first time I do F11, the nvim window will kind of maximize, but leaving a border as shown in the image.

Then, when I do F11 again, the window will become fullscreen, instead of toggle back to non-fullscreen mode.

It seems when GuiWindowFullScreen(1) is called under the state that the window is maximized, it will not become fullscreen mode. We need to call it twice...

P.S. it might be hard to see from the image as there's no borders. But you can see something outside the vim background, that's the gui of another program and shows that vim is not fullscreened.

xarthurx avatar Apr 13 '19 18:04 xarthurx

Hi @xarthurx thanks for reporting this,

It seems when GuiWindowFullScreen(1) is called under the state that the window is maximized, it will not become fullscreen mode. We need to call it twice...

I am not able to reproduce this in my system. What OS and window manager are you using? Fullscreen/Maximized window behaviour is completely dependent on the window manager (at least in X11).

equalsraf avatar Apr 14 '19 13:04 equalsraf

Hi @equalsraf , thank you for the quick response!

I'm using the newest stable Windows 10. I guess it is sth with the Windows issue.

xarthurx avatar Apr 14 '19 13:04 xarthurx