From c8174a4b2ec41166986df73638aa051d769a9f40 Mon Sep 17 00:00:00 2001 From: David Maciejak Date: Wed, 11 Feb 2026 16:18:21 -0500 Subject: [PATCH] wmaker: add room for the modelock option in winspector This patch is conditionaly adding some extra room in the window inspector advanced options frame if modelock is enabled to fit the extra option. Without it the option text is truncated. --- src/winspector.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/winspector.c b/src/winspector.c index af338bd9..86f5bca2 100644 --- a/src/winspector.c +++ b/src/winspector.c @@ -55,7 +55,11 @@ #define UPDATE_TEXT_FIELD 2 #define REVERT_TO_DEFAULT 4 #define PWIDTH 290 +#ifdef XKB_BUTTON_HINT +#define PHEIGHT 380 +#else #define PHEIGHT 360 +#endif #define UNDEFINED_POS 0xffffff #define UPDATE_DEFAULTS 1 #define IS_BOOLEAN 2 @@ -1315,7 +1319,11 @@ static void create_tab_window_advanced(WWindow *wwin, InspectorPanel *panel, int panel->moreFrm = WMCreateFrame(panel->win); WMSetFrameTitle(panel->moreFrm, _("Advanced")); WMMoveWidget(panel->moreFrm, 15, 45); +#ifdef XKB_BUTTON_HINT + WMResizeWidget(panel->moreFrm, frame_width, 285); +#else WMResizeWidget(panel->moreFrm, frame_width, 265); +#endif for (i = 0; i < wlengthof(advanced_option); i++) { int is_userdef, flag;