mirror of
https://github.com/labwc/labwc.git
synced 2026-04-13 08:21:15 -04:00
Window switch, make pertinent changes to all workspace option
This commit is contained in:
parent
7513d6abc0
commit
9b9855cb53
3 changed files with 14 additions and 8 deletions
14
src/osd.c
14
src/osd.c
|
|
@ -230,10 +230,18 @@ get_type(struct view *view)
|
|||
{
|
||||
switch (view->type) {
|
||||
case LAB_XDG_SHELL_VIEW:
|
||||
return "[W] ";
|
||||
if (rc.window_switcher.allworkspaces) {
|
||||
return "[W] ";
|
||||
} else {
|
||||
return "[xdg-shell]";
|
||||
}
|
||||
#if HAVE_XWAYLAND
|
||||
case LAB_XWAYLAND_VIEW:
|
||||
return "[X] ";
|
||||
if (rc.window_switcher.allworkspaces) {
|
||||
return "[X] ";
|
||||
} else {
|
||||
return "[xwayland]";
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return "";
|
||||
|
|
@ -376,7 +384,7 @@ render_osd(struct server *server, cairo_t *cairo, int w, int h,
|
|||
}
|
||||
buf_add(&buf, get_type(*view));
|
||||
if (rc.window_switcher.allworkspaces &&
|
||||
wl_list_length(&server->outputs) > 1) {
|
||||
wl_list_length(&server->outputs) > 1) {
|
||||
buf_add(&buf, (*view)->output->wlr_output->name);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue