mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Options for limiting window/menu title height
(Window|Menu)Title(Min|Max)Height defaults options allow to set minimum and maximum titlebar height. For example, to force all titlebars to 24 pixels execute following commands: $ wdwrite WindowMaker WindowTitleMinHeight 24 $ wdwrite WindowMaker WindowTitleMaxHeight 24 $ wdwrite WindowMaker MenuTitleMinHeight 24 $ wdwrite WindowMaker MenuTitleMaxHeight 24 Signed-off-by: Alexey I. Froloff <raorn@altlinux.org>
This commit is contained in:
committed by
Carlos R. Mafra
parent
99aad55425
commit
e819818eeb
@@ -329,6 +329,9 @@ WDefaultEntry staticOptionList[] = {
|
||||
&wPreferences.disable_miniwindows, getBool, NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
#define NUM2STRING_(x) #x
|
||||
#define NUM2STRING(x) NUM2STRING_(x)
|
||||
|
||||
WDefaultEntry optionList[] = {
|
||||
|
||||
/* dynamic options */
|
||||
@@ -469,8 +472,16 @@ WDefaultEntry optionList[] = {
|
||||
NULL, getFont, setWinTitleFont, NULL, NULL},
|
||||
{"WindowTitleExtendSpace", DEF_WINDOW_TITLE_EXTEND_SPACE, NULL,
|
||||
&wPreferences.window_title_clearance, getInt, setClearance, NULL, NULL},
|
||||
{"WindowTitleMinHeight", "0", NULL,
|
||||
&wPreferences.window_title_min_height, getInt, setClearance, NULL, NULL},
|
||||
{"WindowTitleMaxHeight", NUM2STRING(INT_MAX), NULL,
|
||||
&wPreferences.window_title_max_height, getInt, setClearance, NULL, NULL},
|
||||
{"MenuTitleExtendSpace", DEF_MENU_TITLE_EXTEND_SPACE, NULL,
|
||||
&wPreferences.menu_title_clearance, getInt, setClearance, NULL, NULL},
|
||||
{"MenuTitleMinHeight", "0", NULL,
|
||||
&wPreferences.menu_title_min_height, getInt, setClearance, NULL, NULL},
|
||||
{"MenuTitleMaxHeight", NUM2STRING(INT_MAX), NULL,
|
||||
&wPreferences.menu_title_max_height, getInt, setClearance, NULL, NULL},
|
||||
{"MenuTextExtendSpace", DEF_MENU_TEXT_EXTEND_SPACE, NULL,
|
||||
&wPreferences.menu_text_clearance, getInt, setClearance, NULL, NULL},
|
||||
{"MenuTitleFont", DEF_MENU_TITLE_FONT, NULL,
|
||||
|
||||
Reference in New Issue
Block a user