log: Add swayc_log, use at a few key places.

swayc_log works just like sway_log, but appends type and name from given
container to the log output.
This commit is contained in:
S. Christoffer Eliesen 2015-10-25 00:34:57 +02:00
parent c6bb23b7dd
commit 5a70853253
4 changed files with 31 additions and 2 deletions

View file

@ -76,7 +76,7 @@ bool set_focused_container(swayc_t *c) {
if (locked_container_focus || !c) {
return false;
}
sway_log(L_DEBUG, "Setting focus to %p:%ld", c, c->handle);
swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle);
// Get workspace for c, get that workspaces current focused container.
swayc_t *workspace = swayc_active_workspace_for(c);