Open Bug 1811241 Opened 2 years ago Updated 4 months ago

[Linux] Dragging a tab out of a window always results in "cancel" animation

Categories

(Core :: Widget: Gtk, defect)

defect

Tracking

()

ASSIGNED

People

(Reporter: Gijs, Assigned: Gijs)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

Spun off from bug 1635761.

I fixed the issue on macOS. The documentation says returning true vs false in the "drag failed" handler should govern this behaviour, but somehow my patch doesn't seem to actually effect any change in behaviour on my Ubuntu VM. I'll attach the patch here in case someone else has time to dig into it further.

I tested this patch on my Ubuntu machine, it works as expected.

Attached video screencast.webm

I rebased the patch and tried again but I still see the animation. Here's a screencast. Are you saying that on your machine, without this patch you see the window thumb making its way back to the old window, and that doesn't happen with the patch applied? I guess I can put it up for review but it feels weird to do that because I can still reproduce the problem... but I suppose that may be due to an older ubuntu version or w/e ?

Flags: needinfo?(echen)
Attachment #9313037 - Attachment description: WIP: Bug 1811241 - non-working attempt to get Linux to also not show drag cancel animation for tabs dragged out of the window. → WIP: Bug 1811241 - get Linux to also not show drag cancel animation for tabs dragged out of the window, r?emilio

(In reply to :Gijs (he/him) from comment #3)

Are you saying that on your machine, without this patch you see the window thumb making its way back to the old window, and that doesn't happen with the patch applied?

Yes, on my machine (Ubuntu 22.04.2 LTS):

Flags: needinfo?(echen)

(In reply to Edgar Chen [:edgar] from comment #6)

(In reply to :Gijs (he/him) from comment #3)

Are you saying that on your machine, without this patch you see the window thumb making its way back to the old window, and that doesn't happen with the patch applied?

Yes, on my machine (Ubuntu 22.04.2 LTS):

Huh, OK. I don't know why it doesn't work for me, then. But I guess if it works that's good. The one thing that I'm surprised by in your screencast is that it appears that the time for the window to appear does not appear to decrease - in fact, it takes slightly longer in the "fixed" screencast, but I'm measuring based on crude video timestamping and it looks like it's a debug build so perhaps that's just noise. Still, it's a bit surprising to me.

Anyway, I guess we should try to get this landed, then, and see if there's follow-up work to do / if someone else can figure out why it doesn't work in some circumstances.

Assignee: nobody → gijskruitbosch+bugs
Attachment #9313037 - Attachment description: WIP: Bug 1811241 - get Linux to also not show drag cancel animation for tabs dragged out of the window, r?emilio → Bug 1811241 - get Linux to also not show drag cancel animation for tabs dragged out of the window, r?emilio
Status: NEW → ASSIGNED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: