diff options
| author | lukefromdc <[email protected]> | 2025-10-16 02:45:40 -0400 |
|---|---|---|
| committer | Luke from DC <[email protected]> | 2025-10-28 04:50:17 +0000 |
| commit | 049dff3d168b6f833329b008191dcae6f41b0275 (patch) | |
| tree | b07b67555cd8e21b084db5ff224b0df68599a99e /applets/wncklet | |
| parent | 181dfc6f29b07fc51a37d4b4c832271be2ed1127 (diff) | |
| download | mate-panel-049dff3d168b6f833329b008191dcae6f41b0275.tar.bz2 mate-panel-049dff3d168b6f833329b008191dcae6f41b0275.tar.xz | |
wayland-window-list: keep the labels showing a little longer
Diffstat (limited to 'applets/wncklet')
| -rw-r--r-- | applets/wncklet/wayland-backend.c | 6 |
1 files changed, 3 insertions, 3 deletions
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*/ |
