The title bars shown only for a window drag were hidden before the drop
was classified, which moves the windows, so a drop on a title bar was
treated as a directional insert instead of a swap.
Classify the drop in on_window_drop() before hiding them. On Wayland the
drag source can finish before the drop is delivered, so when the drop is
on kitty, on_drag_source_finished() now leaves hiding them to the drop,
falling back to hiding them if the drop never arrives.
Closes#10709
Window drop previews are cleared before tab drop previews on each tab drag
update. With the shared hover state, this cancels the tab hover timer on every
update, preventing the 0.6 second tab switch.
Preserve a tab hover timer when clearing a window drop preview. Keep the
existing cancellation behavior for window drags and cover the regression.
- Dropping a tab on the tab bar always re-orders. Only windows are merged
into a tab when dropped on its middle. Single window tabs still switch
tabs on hover so they can be dropped into the content area.
- Draw the vertical insertion marker in the blank line between tabs so it
does not hide a tab title, using a single cell only when crowded.
- Make the dropped tab active after a drop from another OS Window, instead
of whichever tab ended up at the stale active index after re-ordering.
- Dropping the window of a single window tab at an insertion point moves
its tab, preserving title and layout, and is a no-op next to itself.
- Do not leave an empty tab behind if moving a dropped window fails.
- Highlight the new tab button only when appending.
- Unify the window and tab drag hover state and share the tab bar drop
hit testing code.