From 049dff3d168b6f833329b008191dcae6f41b0275 Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Thu, 16 Oct 2025 02:45:40 -0400 Subject: wayland-window-list: keep the labels showing a little longer --- applets/wncklet/wayland-backend.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'applets/wncklet/wayland-backend.c') diff --git a/applets/wncklet/wayland-backend.c b/applets/wncklet/wayland-backend.c index 378610cf..321cdec9 100644 --- a/applets/wncklet/wayland-backend.c +++ b/applets/wncklet/wayland-backend.c @@ -402,7 +402,7 @@ adjust_buttons (GtkContainer *outer_box, int button_space, int real_buttons, Top if ((task) && (button_space > 0) && (button_space < icon_size * 3)) gtk_widget_hide (task->icon); - if ((task) && (button_space > 0) && (button_space < icon_size * 1.5)) + if ((task) && (button_space > 0) && (button_space < icon_size)) gtk_widget_hide (task->label); GList* children = gtk_container_get_children (GTK_CONTAINER (outer_box)); @@ -423,7 +423,7 @@ adjust_buttons (GtkContainer *outer_box, int button_space, int real_buttons, Top } /* if the number of buttons forces width to less than 3x the icon size, hide the icons - * if the number of buttons forces width to less than 1.5x the icon size, hide the labels too. + * if the number of buttons forces width to less than the icon size, hide the labels too. * This is roughy the same behavior as on x11 * To find the icon and label we must iterate through the children of the box we packed * into the button, there are two of them @@ -447,7 +447,7 @@ adjust_buttons (GtkContainer *outer_box, int button_space, int real_buttons, Top /*Show or hide the label*/ if (GTK_IS_LABEL (widget)) { - if (button_space < icon_size * 1.5) + if (button_space < icon_size) { gtk_widget_hide (widget); /*We can go a little wider for empty buttons*/ -- cgit v1.2.1