mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Make 'no miniaturizable' window property user-configurable
The flag to not let windows be minimized was already defined in WM (it's called 'no_miniaturizable') and the minimize functions respect it. However this flag can not currently be set manually. As can be read in the NEWS file "NotMiniaturizable option changed to NoMiniaturizeButton" it seems that the "non miniaturizable" property was a first-class citizen in ancient times and probably configurable (those changes do not appear in the old CVS history). Let's make this property be user-configurable through the "Advanced Options" panel. Signed-off-by: Carlos R. Mafra <crmafra@gmail.com>
This commit is contained in:
@@ -55,6 +55,7 @@ static char *getString(WMPropList *, WMPropList *);
|
||||
static WMPropList *ANoTitlebar = NULL;
|
||||
static WMPropList *ANoResizebar;
|
||||
static WMPropList *ANoMiniaturizeButton;
|
||||
static WMPropList *ANoMiniaturizable;
|
||||
static WMPropList *ANoCloseButton;
|
||||
static WMPropList *ANoBorder;
|
||||
static WMPropList *ANoHideOthers;
|
||||
@@ -92,6 +93,7 @@ static void init_wdefaults(WScreen * scr)
|
||||
ANoTitlebar = WMCreatePLString("NoTitlebar");
|
||||
ANoResizebar = WMCreatePLString("NoResizebar");
|
||||
ANoMiniaturizeButton = WMCreatePLString("NoMiniaturizeButton");
|
||||
ANoMiniaturizable = WMCreatePLString("NoMiniaturizable");
|
||||
ANoCloseButton = WMCreatePLString("NoCloseButton");
|
||||
ANoBorder = WMCreatePLString("NoBorder");
|
||||
ANoHideOthers = WMCreatePLString("NoHideOthers");
|
||||
@@ -243,6 +245,9 @@ wDefaultFillAttributes(WScreen * scr, char *instance, char *class,
|
||||
value = get_value(dw, dc, dn, da, ANoMiniaturizeButton, No, useGlobalDefault);
|
||||
APPLY_VAL(value, no_miniaturize_button, ANoMiniaturizeButton);
|
||||
|
||||
value = get_value(dw, dc, dn, da, ANoMiniaturizable, No, useGlobalDefault);
|
||||
APPLY_VAL(value, no_miniaturizable, ANoMiniaturizable);
|
||||
|
||||
value = get_value(dw, dc, dn, da, ANoCloseButton, No, useGlobalDefault);
|
||||
APPLY_VAL(value, no_close_button, ANoCloseButton);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user