Window switcher, cleanup code

This commit is contained in:
DonO 2024-03-12 16:49:38 -05:00
parent a046a30ea5
commit 17573765d6

View file

@ -244,10 +244,10 @@ get_winfo(struct view *view)
{ {
switch (view->type) { switch (view->type) {
case LAB_XDG_SHELL_VIEW: case LAB_XDG_SHELL_VIEW:
return "[W] "; return "[W]";
#if HAVE_XWAYLAND #if HAVE_XWAYLAND
case LAB_XWAYLAND_VIEW: case LAB_XWAYLAND_VIEW:
return "[X] "; return "[X]";
#endif #endif
} }
return ""; return "";
@ -399,6 +399,8 @@ render_osd(struct server *server, cairo_t *cairo, int w, int h,
if (wl_list_length(&server->outputs) > 1 && if (wl_list_length(&server->outputs) > 1 &&
output_is_usable((*view)->output)) { output_is_usable((*view)->output)) {
buf_add(&buf, (*view)->output->wlr_output->name); buf_add(&buf, (*view)->output->wlr_output->name);
} else {
buf_add(&buf, " ");
} }
break; break;
case LAB_FIELD_IDENTIFIER: case LAB_FIELD_IDENTIFIER: