mirror of
https://github.com/swaywm/sway.git
synced 2024-11-11 04:54:14 +01:00
container_move check
This commit is contained in:
parent
7672886cb5
commit
9fd2d635a1
@ -206,7 +206,8 @@ void swap_geometry(swayc_t *a, swayc_t *b) {
|
|||||||
|
|
||||||
void move_container(swayc_t *container, enum movement_direction dir) {
|
void move_container(swayc_t *container, enum movement_direction dir) {
|
||||||
enum swayc_layouts layout;
|
enum swayc_layouts layout;
|
||||||
if (container->is_floating) {
|
if (container->is_floating
|
||||||
|
|| (container->type != C_VIEW && container->type != C_CONTAINER)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (dir == MOVE_UP || dir == MOVE_DOWN) {
|
if (dir == MOVE_UP || dir == MOVE_DOWN) {
|
||||||
|
Loading…
Reference in New Issue
Block a user