diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-25 00:34:57 +0200 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-25 13:14:28 +0100 |
commit | 5a70853253633482b09ebdcbde0f4ec7502c7527 (patch) | |
tree | aa6841b0faf26ef4bd01010029b8e3a4e0d31c50 /sway/focus.c | |
parent | sway/output: Create, move code from handlers.c here. (diff) | |
download | sway-5a70853253633482b09ebdcbde0f4ec7502c7527.tar.gz sway-5a70853253633482b09ebdcbde0f4ec7502c7527.tar.zst sway-5a70853253633482b09ebdcbde0f4ec7502c7527.zip |
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.
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c index 0c1f8c9e..1aa7579b 100644 --- a/sway/focus.c +++ b/sway/focus.c | |||
@@ -76,7 +76,7 @@ bool set_focused_container(swayc_t *c) { | |||
76 | if (locked_container_focus || !c) { | 76 | if (locked_container_focus || !c) { |
77 | return false; | 77 | return false; |
78 | } | 78 | } |
79 | sway_log(L_DEBUG, "Setting focus to %p:%ld", c, c->handle); | 79 | swayc_log(L_DEBUG, c, "Setting focus to %p:%ld", c, c->handle); |
80 | 80 | ||
81 | // Get workspace for c, get that workspaces current focused container. | 81 | // Get workspace for c, get that workspaces current focused container. |
82 | swayc_t *workspace = swayc_active_workspace_for(c); | 82 | swayc_t *workspace = swayc_active_workspace_for(c); |