mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 09:51:29 +00:00
Few stray bits
This commit is contained in:
parent
3f5343199b
commit
713bf29ec9
|
@ -17,7 +17,7 @@ swayc_t *add_sibling(swayc_t *sibling, swayc_t *child);
|
||||||
swayc_t *replace_child(swayc_t *child, swayc_t *new_child);
|
swayc_t *replace_child(swayc_t *child, swayc_t *new_child);
|
||||||
swayc_t *remove_child(swayc_t *child);
|
swayc_t *remove_child(swayc_t *child);
|
||||||
|
|
||||||
void move_container(swayc_t* container,swayc_t* root,int direction);
|
void move_container(swayc_t* container,swayc_t* root,enum movement_direction direction);
|
||||||
|
|
||||||
|
|
||||||
// Layout
|
// Layout
|
||||||
|
|
|
@ -362,6 +362,7 @@ static bool cmd_move(struct sway_config *config, int argc, char **argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
static bool cmd_gaps(struct sway_config *config, int argc, char **argv) {
|
static bool cmd_gaps(struct sway_config *config, int argc, char **argv) {
|
||||||
if (!checkarg(argc, "gaps", EXPECTED_AT_LEAST, 1)) {
|
if (!checkarg(argc, "gaps", EXPECTED_AT_LEAST, 1)) {
|
||||||
|
|
|
@ -108,7 +108,9 @@ swayc_t *remove_child(swayc_t *child) {
|
||||||
return parent;
|
return parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
void move_container(swayc_t *container,swayc_t* root,int direction){
|
//TODO: Implement horizontal movement.
|
||||||
|
//TODO: Implement move to a different workspace.
|
||||||
|
void move_container(swayc_t *container,swayc_t* root,enum movement_direction direction){
|
||||||
sway_log(L_DEBUG, "Moved window");
|
sway_log(L_DEBUG, "Moved window");
|
||||||
swayc_t *temp;
|
swayc_t *temp;
|
||||||
int i;
|
int i;
|
||||||
|
@ -121,8 +123,6 @@ void move_container(swayc_t *container,swayc_t* root,int direction){
|
||||||
//Only one container, meh.
|
//Only one container, meh.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//TODO: Implement horizontal movement.
|
|
||||||
//TODO: Implement move to a different workspace.
|
|
||||||
if(direction == MOVE_LEFT && i > 0){
|
if(direction == MOVE_LEFT && i > 0){
|
||||||
temp = root->children->items[i-1];
|
temp = root->children->items[i-1];
|
||||||
root->children->items[i] = temp;
|
root->children->items[i] = temp;
|
||||||
|
|
Loading…
Reference in a new issue