mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 13:54:12 +01:00
WPrefs: Move around some options between pages
Move bounce options from expert prefs to its own box on ergonomic prefs to have them at one place which makes them somewhat more clear. The options previously occupying this place have been moved to other pages where they better belong.
This commit is contained in:
committed by
Carlos R. Mafra
parent
eb51844fa8
commit
92d52523c4
@@ -47,6 +47,7 @@ typedef struct _Panel {
|
||||
WMFrame *optF;
|
||||
WMButton *ignB;
|
||||
WMButton *newB;
|
||||
WMButton *craisB;
|
||||
|
||||
char raiseDelaySelected;
|
||||
} _Panel;
|
||||
@@ -112,6 +113,7 @@ static void showData(_Panel * panel)
|
||||
/**/ WMSetButtonSelected(panel->ignB, GetBoolForKey("IgnoreFocusClick"));
|
||||
|
||||
WMSetButtonSelected(panel->newB, GetBoolForKey("AutoFocus"));
|
||||
WMSetButtonSelected(panel->craisB, GetBoolForKey("CirculateRaise"));
|
||||
}
|
||||
|
||||
static void storeData(_Panel * panel)
|
||||
@@ -139,6 +141,7 @@ static void storeData(_Panel * panel)
|
||||
|
||||
SetBoolForKey(WMGetButtonSelected(panel->ignB), "IgnoreFocusClick");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->newB), "AutoFocus");
|
||||
SetBoolForKey(WMGetButtonSelected(panel->craisB), "CirculateRaise");
|
||||
}
|
||||
|
||||
static void pushDelayButton(WMWidget * w, void *data)
|
||||
@@ -306,14 +309,19 @@ static void createPanel(Panel * p)
|
||||
|
||||
panel->ignB = WMCreateSwitchButton(panel->optF);
|
||||
WMResizeWidget(panel->ignB, 225, 50);
|
||||
WMMoveWidget(panel->ignB, 10, 10);
|
||||
WMMoveWidget(panel->ignB, 10, 4);
|
||||
WMSetButtonText(panel->ignB, _("Do not let applications receive " "the click used to focus windows."));
|
||||
|
||||
panel->newB = WMCreateSwitchButton(panel->optF);
|
||||
WMResizeWidget(panel->newB, 225, 35);
|
||||
WMMoveWidget(panel->newB, 10, 70);
|
||||
WMMoveWidget(panel->newB, 10, 44);
|
||||
WMSetButtonText(panel->newB, _("Automatically focus new windows."));
|
||||
|
||||
panel->craisB = WMCreateSwitchButton(panel->optF);
|
||||
WMResizeWidget(panel->craisB, 225, 36);
|
||||
WMMoveWidget(panel->craisB, 10, 75);
|
||||
WMSetButtonText(panel->craisB, _("Raise window when switching\nfocus with keyboard."));
|
||||
|
||||
WMMapSubwidgets(panel->optF);
|
||||
|
||||
WMRealizeWidget(panel->box);
|
||||
|
||||
Reference in New Issue
Block a user