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: parenting logic, fixing some windows & tooltips misbehaving #5541

Merged
merged 7 commits into from
Aug 17, 2024

Conversation

pajlada
Copy link
Member

@pajlada pajlada commented Aug 11, 2024

This needs testing on all platforms

Fixes #5432
Fixes #5521

When the split's parent changes, that change propagates down to the
created tooltip widget. This breaks tooltips on X11 & Sway (maybe more).
This change ensures that the tooltip window handle's parent is always
nullptr.
@pajlada
Copy link
Member Author

pajlada commented Aug 11, 2024

What I need tested:

  1. Do tooltips work (not the bounds checking) before & after moving a split?
  2. Does the Input Completion Popup work (not the bounds checking) before & after moving a split?
  3. Does the Search popup work (i.e. not closing or being moved into the split somehow) before & after moving a split?

@Nerixyz
Copy link
Contributor

Nerixyz commented Aug 11, 2024

Code_2024-08-11_16-17-41.mp4

Works on Windows.

@pajlada
Copy link
Member Author

pajlada commented Aug 11, 2024

Works as expected on my mac mini (except the search popup X button randomly closed the entire app without it being a crash - it happened 3 times then never again. I think there's a fairy somewhere in my macmini that caused it to do that to make me go insane)

Works as expected on X11 with i3. The only weird thing is that when I move the split, it moves up & to the left by ~1 pixel.

@pajlada
Copy link
Member Author

pajlada commented Aug 17, 2024

image

@pajlada pajlada changed the title fix: tooltips on X11/Sway not working after moving a split fix: parenting logic, fixing some windows & tooltips misbehaving Aug 17, 2024
@pajlada pajlada enabled auto-merge (squash) August 17, 2024 09:36
@pajlada pajlada merged commit f3cae76 into master Aug 17, 2024
17 checks passed
@pajlada pajlada deleted the fix/tooltip-window-handle-parenting branch August 17, 2024 10:02
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.

Drag and Drop Causing Child Windows to Disappear [Wayland] Drag and Drop breaks tooltips
2 participants