[PATCH] wmaker: add room for the modelock option in winspector

0 views
Skip to first unread message

david.m...@gmail.com

unread,
Feb 11, 2026, 4:25:29 PM (13 days ago) Feb 11
to Window Maker Development
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;
--
2.43.0
0001-wmaker-add-room-for-the-modelock-option-in-winspecto.patch
Reply all
Reply to author
Forward
0 new messages