1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-19 17:23:33 +01:00

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.
This commit is contained in:
David Maciejak
2026-02-11 16:18:21 -05:00
committed by Carlos R. Mafra
parent 2901b418ad
commit c8174a4b2e

View File

@@ -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;