improve error messages for i3-internal workspace names
This commit is contained in:
@ -484,7 +484,7 @@ void cmd_move_con_to_workspace_back_and_forth(I3_CMD) {
|
||||
*/
|
||||
void cmd_move_con_to_workspace_name(I3_CMD, char *name) {
|
||||
if (strncasecmp(name, "__", strlen("__")) == 0) {
|
||||
LOG("You cannot switch to the i3 internal workspaces.\n");
|
||||
LOG("You cannot move containers to i3-internal workspaces (\"%s\").\n", name);
|
||||
ysuccess(false);
|
||||
return;
|
||||
}
|
||||
@ -999,7 +999,7 @@ void cmd_workspace_back_and_forth(I3_CMD) {
|
||||
*/
|
||||
void cmd_workspace_name(I3_CMD, char *name) {
|
||||
if (strncasecmp(name, "__", strlen("__")) == 0) {
|
||||
LOG("You cannot switch to the i3 internal workspaces.\n");
|
||||
LOG("You cannot switch to the i3-internal workspaces (\"%s\").\n", name);
|
||||
ysuccess(false);
|
||||
return;
|
||||
}
|
||||
@ -1868,7 +1868,7 @@ void cmd_scratchpad_show(I3_CMD) {
|
||||
*/
|
||||
void cmd_rename_workspace(I3_CMD, char *old_name, char *new_name) {
|
||||
if (strncasecmp(new_name, "__", strlen("__")) == 0) {
|
||||
LOG("You cannot switch to the i3 internal workspaces.\n");
|
||||
LOG("Cannot rename workspace to \"%s\": names starting with __ are i3-internal.", new_name);
|
||||
ysuccess(false);
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user