diff options
| author | emersion <contact@emersion.fr> | 2018-04-02 15:30:58 -0400 | 
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-04-02 15:30:58 -0400 | 
| commit | a4a241697ae591289d7c14eff972e1ef787216e2 (patch) | |
| tree | d82d3c3eba2946670aa634a62d03feb7102f0bf8 /sway/commands/focus.c | |
| parent | 2f64ce86c47efb2ee4c0e3a3c2b31307d21404d9 (diff) | |
| parent | 0c0cc79282b5ce29616893977aca629f90521988 (diff) | |
| download | sway-a4a241697ae591289d7c14eff972e1ef787216e2.tar.xz | |
Merge branch 'wlroots' into view-redesign
Diffstat (limited to 'sway/commands/focus.c')
| -rw-r--r-- | sway/commands/focus.c | 11 | 
1 files changed, 4 insertions, 7 deletions
diff --git a/sway/commands/focus.c b/sway/commands/focus.c index 64f079f4..74d9d535 100644 --- a/sway/commands/focus.c +++ b/sway/commands/focus.c @@ -20,10 +20,6 @@ static bool parse_movement_direction(const char *name,  		*out = MOVE_PARENT;  	} else if (strcasecmp(name, "child") == 0) {  		*out = MOVE_CHILD; -	} else if (strcasecmp(name, "next") == 0) { -		*out = MOVE_NEXT; -	} else if (strcasecmp(name, "prev") == 0) { -		*out = MOVE_PREV;  	} else {  		return false;  	} @@ -40,7 +36,7 @@ struct cmd_results *cmd_focus(int argc, char **argv) {  	}  	if (argc == 0) { -		sway_seat_set_focus(seat, con); +		seat_set_focus(seat, con);  		return cmd_results_new(CMD_SUCCESS, NULL, NULL);  	} @@ -51,9 +47,10 @@ struct cmd_results *cmd_focus(int argc, char **argv) {  				"Expected 'focus <direction|parent|child|mode_toggle>' or 'focus output <direction|name>'");  	} -	struct sway_container *next_focus = container_get_in_direction(con, seat, direction); +	struct sway_container *next_focus = container_get_in_direction( +			con, seat, direction);  	if (next_focus) { -		sway_seat_set_focus(seat, next_focus); +		seat_set_focus(seat, next_focus);  	}  	return cmd_results_new(CMD_SUCCESS, NULL, NULL);  | 
