mirror of
https://github.com/labwc/labwc.git
synced 2026-04-09 08:21:18 -04:00
menu: add minimised state akin to openbox
This commit is contained in:
parent
13dd2dd606
commit
f74a564dfc
1 changed files with 3 additions and 5 deletions
|
|
@ -900,7 +900,6 @@ update_client_list_combined_menu(struct server *server)
|
|||
wl_list_for_each(view, &server->views, link) {
|
||||
if (view->workspace == workspace) {
|
||||
const char *title = view_get_string_prop(view, "title");
|
||||
const char *appid = view_get_string_prop(view, "app_id");
|
||||
if (!view->foreign_toplevel || string_null_or_empty(title)) {
|
||||
continue;
|
||||
}
|
||||
|
|
@ -909,10 +908,9 @@ update_client_list_combined_menu(struct server *server)
|
|||
buf_add(&buffer, "*");
|
||||
}
|
||||
if (view->minimized) {
|
||||
buf_add_fmt(&buffer, "(%s - %s)", title, appid);
|
||||
}
|
||||
else
|
||||
buf_add_fmt(&buffer, "%s - %s", title, appid);
|
||||
buf_add_fmt(&buffer, "(%s)", title);
|
||||
} else
|
||||
buf_add(&buffer, title);
|
||||
|
||||
item = item_create(menu, buffer.data, NULL,
|
||||
/*show arrow*/ false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue