mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 21:14:10 +01:00
Reset container dimensions when moving into workspace from direction
This commit is contained in:
parent
f9cea7f09b
commit
14cab78612
@ -154,6 +154,8 @@ static void container_move_to_container_from_direction(
|
|||||||
static void container_move_to_workspace_from_direction(
|
static void container_move_to_workspace_from_direction(
|
||||||
struct sway_container *container, struct sway_workspace *workspace,
|
struct sway_container *container, struct sway_workspace *workspace,
|
||||||
enum wlr_direction move_dir) {
|
enum wlr_direction move_dir) {
|
||||||
|
container->width = container->height = 0;
|
||||||
|
|
||||||
if (is_parallel(workspace->layout, move_dir)) {
|
if (is_parallel(workspace->layout, move_dir)) {
|
||||||
wlr_log(WLR_DEBUG, "Reparenting container (parallel)");
|
wlr_log(WLR_DEBUG, "Reparenting container (parallel)");
|
||||||
int index =
|
int index =
|
||||||
|
Loading…
Reference in New Issue
Block a user