gnvim: Invalid popupmenu position

One more issue stopping me from using gnvim.

popupmenu is not in the right place Screenshot from 2019-07-11 17-39-34

At first I was using neovim 0.3.8, and Readme says gnvim requires latest master, so i installed latest neovim-git. No luck, popupmenu is still few lines lower than expected.

Even with empty vimrc.

BTW, gnvim -- u NONE is not showing popupmenu at all. With gnvim -- -u /dev/null menu is displayed, but not in the right place)

> yay -Q gnvim-git neovim-git gtk3 rust
gnvim-git r219.9ea48e9-1
neovim-git 0.3.4.r1258.g6eab3b925-1
gtk3 1:3.24.10-1
rust 1:1.35.0-1

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 28 (15 by maintainers)

Most upvoted comments

@last-partizan which gtk version are you using?

@smolck I wouldn’t remove the translate_coordinates call before we understand why its giving a different result. Btw, that code was introduced here: https://github.com/vhakulinen/gnvim/commit/afeee13d4fd643185dcd513712deed4cd1e5b4e0.

BTW, i don’t see any calls to translate_coordinates in neovim-gtk, probably this is why it does not have this problem.

Thats because neovim-gtk is using GtkPopover to display the popupmenu.

To me, it looks like the x values is invalid too.