mirror of
https://github.com/swaywm/sway.git
synced 2025-11-13 13:29:49 -05:00
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:
parent
c6bb23b7dd
commit
5a70853253
4 changed files with 31 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue