-
Notifications
You must be signed in to change notification settings - Fork 494
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
Cannot focus back on float window after focus on other program #1988
Comments
This is a more general version of #1943. The focus works properly if you use The documentation for
I did a quick hack and modified these two lines to hardcode Adding the "good first issue" tag, this should be easy to fix and test for someone that wants to contribute to Neovide. |
@fredizzimo So Ive been fighting with this issue a bit and I believe it still is broken with multigrid. I did what you suggested with making sure its a neovide problem, and I think it is. It seems to work fine in neovim terminal, which doesnt support the mouse "focus" events, but clicking outside the window and clicking back in DOES work, but is broken in neovide For starters im using floaterm: return {
'voldikss/vim-floaterm',
keys = {
{
'<Leader>x',
function() vim.cmd('FloatermNew --title=ZSH --floaterm_autoclose=2 --width=0.7 --height=0.4') end,
desc = 'ZSH shell',
},
{
'<Leader>z',
function() vim.cmd('FloatermNew --title=LazyGit --width=0.95 --height=0.95 lazygit') end,
desc = 'LazyGit',
},
},
} So first, I press As SOON as I move the mouse outside the window the bottom status bar changes from At that exact moment, LazyGit stops responding to the Im not sure if this is desired behavior or not, id like to disable that, but thats not actually the "bug" When I move the mouse back INTO the window, it still wont respond to "q" I need to press The bug I believe can be simply reproduced by just clicking outside the window, and clicking back in, and the window will not re-focus. On neovim in terminal, it refocuses immediately. On Neovide, the cursor appears in the window, but its actually "behind" the window. I have tried both 'improve render loop' branch, and 'stable' release branch. Here is part of my bash script which shows which ENV vars im loading before calling neovide. You can see multigrid is enabled
|
I'm recently using |
@xarthurx @9mm, |
oooooo...... Interesting. Knowing I can use With that said... what actually makes the Thanks again @fredizzimo i am forever gratful for all this awesome work. |
Describe the bug
On Windows, after opening a floating window (e.g.
Lazy
), if I mouse-click other program and click back, the cursor is always on the buffer behind the floating window -- I cannot focus on the floating window and close it.In the end, I need to close the whole neovide itself.
This doesn't happen on
nvim-qt
-- I believe this is a neovide bug.To Reproduce
Steps to reproduce the behavior:
Lazy
)neovide
loose focusneovide
to focus on the windowExpected behavior
I can focus on the floating window and close it.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: