equalsraf / neovim-qt

Neovim client library and GUI, in Qt5.
https://github.com/equalsraf/neovim-qt/wiki
ISC License
1.86k stars 171 forks source link

Strange bug when mix GuiWindowFullScreen and GuiWindowMaximized #535

Open xarthurx opened 5 years ago

xarthurx commented 5 years ago

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.

equalsraf commented 5 years ago

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).

xarthurx commented 5 years ago

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.