Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PopupMenu stays on top of other windows on focus loss of Neovim-Gtk #100

Open
theHamsta opened this issue Aug 13, 2023 · 0 comments
Open
Labels
bug Something isn't working

Comments

@theHamsta
Copy link

theHamsta commented Aug 13, 2023

Describe the bug
At the moment Neovim-Gtk's popover doesn't hide on focus loss of the main window. This causes the popover to be rendered above other windows when I switch to a different application.

A possible fix is to rely on the autohide = true behavior of GTK (https://github.com/Lyude/neovim-gtk/pull/99/files) which would be at the cost of possibly deviating from the state of terminal Neovim for set mouse=. EDIT: "autohide" grabs keyboard input.

One could also handle the focus loss explicitly and bring the Popover back when focus is regained.

Technical information (please complete the following information):

  • OS: Ubuntu 23.10 (dev version)
  • Neovim version: 0.10-dev
  • Neovim-Gtk build version: 6f279b4
@theHamsta theHamsta changed the title Consider making PopupMenu "autohide" PopupMenu stays on top of other windows on focus loss of Neovim-Gtk Aug 13, 2023
@Lyude Lyude added the bug Something isn't working label Aug 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants