diff options
| author | Drew DeVault <sir@cmpwn.com> | 2019-02-03 20:14:45 +0100 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-03 20:14:45 +0100 | 
| commit | 4ef5b49906700e25383a32cde0b16f1df2de250a (patch) | |
| tree | 8e54c4ee9dd0ffceecf5a99f91a341fd1d714c5e /sway/commands | |
| parent | 8e60efe0bf771120818b675d54c87b091c68fd70 (diff) | |
| parent | 7299b9a6ca3658852f2ff41b05f6aaa86ff90d81 (diff) | |
| download | sway-4ef5b49906700e25383a32cde0b16f1df2de250a.tar.xz | |
Merge pull request #3564 from RedSoxFan/seat-cursor-do-not-create
seat_cmd_cursor: do not create non-existing seat
Diffstat (limited to 'sway/commands')
| -rw-r--r-- | sway/commands/seat/cursor.c | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/sway/commands/seat/cursor.c b/sway/commands/seat/cursor.c index 4f805b22..0c7609ea 100644 --- a/sway/commands/seat/cursor.c +++ b/sway/commands/seat/cursor.c @@ -61,9 +61,10 @@ struct cmd_results *seat_cmd_cursor(int argc, char **argv) {  	}  	if (strcmp(sc->name, "*") != 0) { -		struct sway_seat *seat = input_manager_get_seat(sc->name); +		struct sway_seat *seat = input_manager_get_seat(sc->name, false);  		if (!seat) { -			return cmd_results_new(CMD_FAILURE, "Failed to get seat"); +			return cmd_results_new(CMD_FAILURE, +					"Seat %s does not exist", sc->name);  		}  		error = handle_command(seat->cursor, argc, argv);  	} else { | 
