X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommands.c;h=02d602f0e5112219bae0356bf0a7d92388c85f0e;hb=e68a8dd86c34db800a2b5643c94b292ad191a708;hp=44e6a23d4533f275b6ddffd15c96dd905c3899ea;hpb=fb4ee17b054afa2f85ad64480353f554e5eae2d3;p=i3%2Fi3 diff --git a/src/commands.c b/src/commands.c index 44e6a23d..02d602f0 100644 --- a/src/commands.c +++ b/src/commands.c @@ -1,3 +1,5 @@ +#undef I3__FILE__ +#define I3__FILE__ "commands.c" /* * vim:ts=4:sw=4:expandtab * @@ -452,7 +454,7 @@ void cmd_move_con_to_workspace_number(I3_CMD, char *which) { return; } - LOG("should move window to workspace with number %d\n", which); + LOG("should move window to workspace %s\n", which); /* get the workspace */ Con *output, *workspace = NULL; @@ -835,7 +837,7 @@ void cmd_workspace_number(I3_CMD, char *which) { child->num == parsed_num); if (!workspace) { - LOG("There is no workspace with number %d, creating a new one.\n", parsed_num); + LOG("There is no workspace with number %ld, creating a new one.\n", parsed_num); ysuccess(true); /* terminate the which string after the endposition of the number */ *endptr = '\0'; @@ -1263,7 +1265,7 @@ void cmd_focus_level(I3_CMD, char *level) { if (con_fullscreen_permits_focusing(focused->parent)) success = level_up(); else - LOG("Currently in fullscreen, not going up\n"); + ELOG("'focus parent': Currently in fullscreen, not going up\n"); } } @@ -1421,6 +1423,10 @@ void cmd_layout(I3_CMD, char *layout_str) { layout = L_SPLITV; else if (strcmp(layout_str, "splith") == 0) layout = L_SPLITH; + else { + ELOG("Unknown layout \"%s\", this is a mismatch between code and parser spec.\n", layout_str); + return; + } DLOG("changing layout to %s (%d)\n", layout_str, layout);