input/seat: float tiled containers when attached to drag

When a tiled container is attached to a toplevel drag (e.g., re-tearing
out a previously tabbed window), float it so it can be moved with the
cursor.
This commit is contained in:
Ryan Walklin 2025-12-12 22:53:23 +13:00
parent 500ee09be6
commit ed931b955f

View file

@ -467,8 +467,8 @@ static void toplevel_drag_handle_motion(struct wl_listener *listener, void *data
} }
if (!container_is_floating(view->container)) { if (!container_is_floating(view->container)) {
// During tearout phase (not yet floating), don't skip hit-testing. // Tiled container being torn out - float it at cursor position
return; container_set_floating(view->container, true);
} }
struct wlr_surface *surface = view->surface; struct wlr_surface *surface = view->surface;