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

@ -349,7 +349,7 @@ void update_geometry(swayc_t *container) {
static void arrange_windows_r(swayc_t *container, double width, double height) {
int i;
if (width == -1 || height == -1) {
sway_log(L_DEBUG, "Arranging layout for %p", container);
swayc_log(L_DEBUG, container, "Arranging layout for %p", container);
width = container->width;
height = container->height;
}