Chatterino / chatterino2

Chat client for https://twitch.tv
MIT License
2.04k stars 446 forks source link

[Wayland] Drag and Drop breaks tooltips #5432

Closed fruzitent closed 1 month ago

fruzitent commented 4 months ago

Checklist

Describe your issue

Hyprland (broken)

$ hyprctl version
Hyprland, built from branch  at commit cba1ade848feac44b2eda677503900639581c3f4  (props: bump version to 0.40.0).

https://github.com/Chatterino/chatterino2/assets/40008647/a03a3f63-7283-4372-8774-99fb91a3b6a5

Sway (works)

$ sway --version
sway version 1.9

https://github.com/Chatterino/chatterino2/assets/40008647/141e25d7-e483-44b9-b522-3c626932ff05

Screenshots

No response

OS and Chatterino Version

Chatterino 2.5.1 (commit 9ec102240) built with Qt 6.7.1 Running on Arch Linux, kernel: 6.9.2-arch1-1

pajlada commented 4 months ago

On X11, the tooltip instead disappears. Some investigations I've made seems to imply the issue here is changing the parent of the tooltip, which is reparented when the Split is reparented.

If you comment out split->setParent(nullptr); in SplitContainer::releaseSplit, the bug will only show up when moving the split inbetween split containers instead, since the parent of the split stays the same.

kornes commented 4 months ago

windows is also affected by this bug, detaching split for drag/drop breaks all current child windows, confirmed with: select channel, pinned usercard, search popup

JCRouzer29 commented 2 months ago

The drag/drop appears to also break emote and username autocompletion popup menus. Once moved they cease to appear.

JCRouzer29 commented 1 month ago

Unfortunately, the pinned usercard windows are still being lost upon drag/drop logic.

Other child windows appear to be working as intended as well as emote and username completion.

https://github.com/user-attachments/assets/522d42df-37de-453b-9bda-602205f482e4

pajlada commented 1 month ago

Unfortunately, the pinned usercard windows are still being lost upon drag/drop logic.

Other child windows appear to be working as intended as well as emote and username completion. Usercard.Still.Not.Working.as.Intended.mp4

Could you make a new issue to track this?

Nerixyz commented 1 month ago

Unfortunately, the pinned usercard windows are still being lost upon drag/drop logic.

Can replicate on 6.7.1 and 6.7.2 but not on 6.8.0 (beta3) which should be out in about a month.