mirror of
https://github.com/labwc/labwc.git
synced 2026-05-04 06:46:55 -04:00
Window switching, code cleanup
This commit is contained in:
parent
625355abbb
commit
000fc72340
1 changed files with 11 additions and 13 deletions
|
|
@ -379,7 +379,6 @@ render_osd(struct server *server, cairo_t *cairo, int w, int h,
|
|||
buf_add(&buf, get_type(*view));
|
||||
break;
|
||||
case LAB_FIELD_WINFO:
|
||||
if (rc.window_switcher.all_workspaces) {
|
||||
buf_add(&buf, (*view)->workspace->name);
|
||||
if ((*view)->maximized) {
|
||||
buf_add(&buf, " M ");
|
||||
|
|
@ -390,10 +389,9 @@ render_osd(struct server *server, cairo_t *cairo, int w, int h,
|
|||
} else {
|
||||
buf_add(&buf, " ");
|
||||
}
|
||||
}
|
||||
buf_add(&buf, get_winfo(*view));
|
||||
if (rc.window_switcher.all_workspaces &&
|
||||
wl_list_length(&server->outputs) > 1) {
|
||||
if (wl_list_length(&server->outputs) > 1 &&
|
||||
output_is_usable(*view->output)) {
|
||||
buf_add(&buf, (*view)->output->wlr_output->name);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue