mirror of
https://github.com/swaywm/sway.git
synced 2026-02-05 04:06:25 -05:00
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:
parent
500ee09be6
commit
ed931b955f
1 changed files with 2 additions and 2 deletions
|
|
@ -467,8 +467,8 @@ static void toplevel_drag_handle_motion(struct wl_listener *listener, void *data
|
|||
}
|
||||
|
||||
if (!container_is_floating(view->container)) {
|
||||
// During tearout phase (not yet floating), don't skip hit-testing.
|
||||
return;
|
||||
// Tiled container being torn out - float it at cursor position
|
||||
container_set_floating(view->container, true);
|
||||
}
|
||||
|
||||
struct wlr_surface *surface = view->surface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue