From c620b354b55d3d1dc1dfbd233057d284e6d1fcb8 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Tue, 3 Feb 2026 18:47:21 -0500 Subject: [PATCH] wmaker: fix some truncated texts in the info panel This patch is fixing some text truncation especially for displaying the total memory allocated in debug mode and the image formats (when the JXL support is enabled). --- src/dialog.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/dialog.c b/src/dialog.c index 6568a158..98e0b515 100644 --- a/src/dialog.c +++ b/src/dialog.c @@ -1276,9 +1276,9 @@ void wShowInfoPanel(WScreen *scr) panel->win = WMCreateWindow(scr->wmscreen, "info"); WMGetScaleBaseFromSystemFont(scr->wmscreen, &wmScaleWidth, &wmScaleHeight); #if defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO2) && defined(DEBUG) - pwidth = WMScaleX(412); + pwidth = WMScaleX(432); #else - pwidth = WMScaleX(382); + pwidth = WMScaleX(392); #endif pheight = WMScaleY(270); WMResizeWidget(panel->win, pwidth, pheight); @@ -1344,7 +1344,7 @@ void wShowInfoPanel(WScreen *scr) panel->copyrL = WMCreateLabel(panel->win); WMResizeWidget(panel->copyrL, WMScaleX(360), WMScaleY(60)); - WMMoveWidget(panel->copyrL, WMScaleX(15), WMScaleY(210)); + WMMoveWidget(panel->copyrL, WMScaleX(15), WMScaleY(215)); WMSetLabelTextAlignment(panel->copyrL, WALeft); snprintf(buffer, sizeof(buffer), COPYRIGHT_TEXT, current_year); @@ -1455,7 +1455,7 @@ void wShowInfoPanel(WScreen *scr) strbuf = wstrappend(strbuf, _("Xinerama: ")); { char tmp[128]; - snprintf(tmp, sizeof(tmp) - 1, _("%d head(s) found"), scr->xine_info.count); + snprintf(tmp, sizeof(tmp) - 1, scr->xine_info.count > 1 ? _("%d head(s) found") : _("%d head found"), scr->xine_info.count); strbuf = wstrappend(strbuf, tmp); } #endif @@ -1471,9 +1471,9 @@ void wShowInfoPanel(WScreen *scr) panel->infoL = WMCreateLabel(panel->win); #if defined(HAVE_MALLOC_H) && defined(HAVE_MALLINFO2) && defined(DEBUG) - WMResizeWidget(panel->infoL, WMScaleX(380), WMScaleY(100)); + WMResizeWidget(panel->infoL, WMScaleX(430), WMScaleY(105)); #else - WMResizeWidget(panel->infoL, WMScaleX(350), WMScaleY(100)); + WMResizeWidget(panel->infoL, WMScaleX(370), WMScaleY(105)); #endif WMMoveWidget(panel->infoL, WMScaleX(15), WMScaleY(115)); WMSetLabelText(panel->infoL, strbuf);