aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-13 15:16:06 -0600
committerLeonardo Hernández Hernández <leohdz172@protonmail.com>2022-03-13 15:46:32 -0600
commit2cd0b3173d2ba7078347a8172b497d12fa592549 (patch)
tree3172640aba955945cc4ae0bb612228ee8702da03
parent08020d61b7ed2c13a544c7c3f051754088475a2d (diff)
print status about floating and fullscreen
-rw-r--r--dwl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dwl.c b/dwl.c
index 65244e7..1388acb 100644
--- a/dwl.c
+++ b/dwl.c
@@ -1036,6 +1036,7 @@ setfullscreen(Client *c, int fullscreen)
resize(c, c->prev.x, c->prev.y, c->prev.width, c->prev.height, 0);
arrange(c->mon);
}
+ printstatus();
}
void
@@ -1568,10 +1569,14 @@ printstatus(void)
urg |= c->tags;
}
if ((c = focustop(m))) {
- printf("%s title %s\n", m->wlr_output->name, client_get_title(focustop(m)));
+ printf("%s title %s\n", m->wlr_output->name, client_get_title(c));
+ printf("%s fullscreen %u\n", m->wlr_output->name, c->isfullscreen);
+ printf("%s floating %u\n", m->wlr_output->name, c->isfloating);
sel = c->tags;
} else {
printf("%s title \n", m->wlr_output->name);
+ printf("%s fullscreen \n", m->wlr_output->name);
+ printf("%s floating \n", m->wlr_output->name);
sel = 0;
}
@@ -1902,6 +1907,7 @@ setfloating(Client *c, int floating)
{
c->isfloating = floating;
arrange(c->mon);
+ printstatus();
}
void