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

fix: group floating window #2578

Merged
merged 1 commit into from
May 22, 2024
Merged

Conversation

TwIStOy
Copy link
Contributor

@TwIStOy TwIStOy commented May 21, 2024

What kind of change does this PR introduce?

  • Fix

Did this PR introduce a breaking change?

A breaking change includes anything that breaks backwards compatibility either at compile or run time.

  • No

close #2524

@fredizzimo
Copy link
Member

Thanks, I will look into this in the evening. It's possible that we will also put the grouping across layers as an experimental feature toggle, to avoid issues like:

I personally think that floating windows should never be grouped across layers, even if some plugins rely on that currently. But it should be possible to write all those UIs using a single layer, which IMO is a better than our unannounced convention of grouping all consecutive layers together. That way only a few plugins need to adopt, maybe only nui and telescope.

Copy link

Test Results

  6 files  ±0    6 suites  ±0   18s ⏱️ -6s
110 tests ±0  110 ✅ ±0  0 💤 ±0  0 ❌ ±0 
644 runs  ±0  644 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 0f2fc59. ± Comparison against base commit a5b5ae6.

Copy link
Member

@fredizzimo fredizzimo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sorting is needed here, otherwise group_by will create multiple groups for the same group id. That explains the random behaviour of the bug, since the order of the window depend on the window size and maybe even random factors.

@Kethku Kethku merged commit 904a573 into neovide:main May 22, 2024
12 checks passed
zbyna pushed a commit to zbyna/neovide that referenced this pull request Jun 1, 2024
@TwIStOy TwIStOy deleted the fix-floating-window-group branch June 2, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Z-index layers are not being merged correctly.
3 participants