mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
finished removing focusfollowmouse from wprefs
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
- removed FocusFollowMouse from wmaker and WPrefs
|
||||||
|
|
||||||
Changes since version 0.64.0:
|
Changes since version 0.64.0:
|
||||||
.............................
|
.............................
|
||||||
- fix with gnome hints stuff, related to tasklist/bar
|
- fix with gnome hints stuff, related to tasklist/bar
|
||||||
|
|||||||
4
NEWS
4
NEWS
@@ -2,6 +2,10 @@
|
|||||||
NEWS for veteran Window Maker users
|
NEWS for veteran Window Maker users
|
||||||
-----------------------------------
|
-----------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
Removed FocusFollowMouse option, only SloppyFocus present now.
|
||||||
|
|
||||||
|
|
||||||
--- 0.65.0
|
--- 0.65.0
|
||||||
|
|
||||||
Single AppIcon
|
Single AppIcon
|
||||||
|
|||||||
@@ -35,8 +35,7 @@ typedef struct _Panel {
|
|||||||
WMWidget *parent;
|
WMWidget *parent;
|
||||||
|
|
||||||
WMFrame *kfocF;
|
WMFrame *kfocF;
|
||||||
WMPopUpButton *kfocP;
|
WMButton *kfocB[2];
|
||||||
WMLabel *kfocL;
|
|
||||||
|
|
||||||
WMFrame *cfocF;
|
WMFrame *cfocF;
|
||||||
WMButton *autB;
|
WMButton *autB;
|
||||||
@@ -74,17 +73,15 @@ showData(_Panel *panel)
|
|||||||
if (!str)
|
if (!str)
|
||||||
str = "manual";
|
str = "manual";
|
||||||
if (strcasecmp(str, "manual")==0 || strcasecmp(str, "clicktofocus")==0)
|
if (strcasecmp(str, "manual")==0 || strcasecmp(str, "clicktofocus")==0)
|
||||||
WMSetPopUpButtonSelectedItem(panel->kfocP, 0);
|
WMSetButtonSelected(panel->kfocB[0], 1);
|
||||||
else if (strcasecmp(str, "auto")==0 || strcasecmp(str, "focusfollowsmouse")==0)
|
else if (strcasecmp(str, "auto")==0 || strcasecmp(str, "semiauto")==0
|
||||||
WMSetPopUpButtonSelectedItem(panel->kfocP, 1);
|
|| strcasecmp(str, "sloppy")==0)
|
||||||
else if (strcasecmp(str, "semiauto")==0 || strcasecmp(str, "sloppy")==0)
|
WMSetButtonSelected(panel->kfocB[1], 1);
|
||||||
WMSetPopUpButtonSelectedItem(panel->kfocP, 2);
|
|
||||||
else {
|
else {
|
||||||
wwarning(_("bad option value %s for option FocusMode. Using default Manual"),
|
wwarning(_("bad option value %s for option FocusMode. Using default Manual"),
|
||||||
str);
|
str);
|
||||||
WMSetPopUpButtonSelectedItem(panel->kfocP, 0);
|
WMSetButtonSelected(panel->kfocB[0], 1);
|
||||||
}
|
}
|
||||||
changeFocusMode(panel->kfocP, panel);
|
|
||||||
|
|
||||||
/**/
|
/**/
|
||||||
str = GetStringForKey("ColormapMode");
|
str = GetStringForKey("ColormapMode");
|
||||||
@@ -137,17 +134,11 @@ storeData(_Panel *panel)
|
|||||||
char *str;
|
char *str;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
switch (WMGetPopUpButtonSelectedItem(panel->kfocP)) {
|
if (WMGetButtonSelected(panel->kfocB[1]))
|
||||||
case 1:
|
|
||||||
str = "auto";
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
str = "sloppy";
|
str = "sloppy";
|
||||||
break;
|
else
|
||||||
default:
|
|
||||||
str = "manual";
|
str = "manual";
|
||||||
break;
|
|
||||||
}
|
|
||||||
SetStringForKey(str, "FocusMode");
|
SetStringForKey(str, "FocusMode");
|
||||||
|
|
||||||
if (WMGetButtonSelected(panel->manB)) {
|
if (WMGetButtonSelected(panel->manB)) {
|
||||||
@@ -186,30 +177,6 @@ pushDelayButton(WMWidget *w, void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
|
||||||
changeFocusMode(WMWidget *w, void *data)
|
|
||||||
{
|
|
||||||
_Panel *panel = (_Panel*)data;
|
|
||||||
|
|
||||||
switch (WMGetPopUpButtonSelectedItem(w)) {
|
|
||||||
case 0:
|
|
||||||
WMSetLabelText(panel->kfocL, _("Click on the window to set\n"\
|
|
||||||
"keyboard input focus."));
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
WMSetLabelText(panel->kfocL, _("Set keyboard input focus to\n"\
|
|
||||||
"the window under the mouse pointer,\n"\
|
|
||||||
"including the root window."));
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
WMSetLabelText(panel->kfocL, _("Set keyboard input focus to\n"\
|
|
||||||
"the window under the mouse pointer,\n"\
|
|
||||||
"except the root window."));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
raiseTextChanged(void *observerData, WMNotification *notification)
|
raiseTextChanged(void *observerData, WMNotification *notification)
|
||||||
{
|
{
|
||||||
@@ -246,21 +213,28 @@ createPanel(Panel *p)
|
|||||||
WMResizeWidget(panel->kfocF, 240, 130);
|
WMResizeWidget(panel->kfocF, 240, 130);
|
||||||
WMMoveWidget(panel->kfocF, 15, 15);
|
WMMoveWidget(panel->kfocF, 15, 15);
|
||||||
WMSetFrameTitle(panel->kfocF, _("Input Focus Mode"));
|
WMSetFrameTitle(panel->kfocF, _("Input Focus Mode"));
|
||||||
|
|
||||||
panel->kfocP = WMCreatePopUpButton(panel->kfocF);
|
|
||||||
WMResizeWidget(panel->kfocP, 210, 20);
|
|
||||||
WMMoveWidget(panel->kfocP, 15, 30);
|
|
||||||
WMAddPopUpButtonItem(panel->kfocP, _("Click window to focus"));
|
|
||||||
WMAddPopUpButtonItem(panel->kfocP, _("Focus follows mouse"));
|
|
||||||
WMAddPopUpButtonItem(panel->kfocP, _("\"Sloppy\" focus"));
|
|
||||||
WMSetPopUpButtonAction(panel->kfocP, changeFocusMode, panel);
|
|
||||||
|
|
||||||
panel->kfocL = WMCreateLabel(panel->kfocF);
|
{
|
||||||
WMResizeWidget(panel->kfocL, 211, 68);
|
WMBox *box = WMCreateBox(panel->kfocF);
|
||||||
WMMoveWidget(panel->kfocL, 15, 55);
|
WMSetViewExpandsToParent(WMWidgetView(box), 10, 15, 10, 10);
|
||||||
WMSetLabelTextAlignment(panel->kfocL, WACenter);
|
WMSetBoxHorizontal(box, False);
|
||||||
|
|
||||||
WMMapSubwidgets(panel->kfocF);
|
panel->kfocB[0] = WMCreateRadioButton(box);
|
||||||
|
WMSetButtonText(panel->kfocB[0], _("Manual: Click on the window to set "\
|
||||||
|
"keyboard input focus"));
|
||||||
|
WMAddBoxSubview(box, WMWidgetView(panel->kfocB[0]), True, True,
|
||||||
|
20, 0, 0);
|
||||||
|
|
||||||
|
panel->kfocB[1] = WMCreateRadioButton(box);
|
||||||
|
WMGroupButtons(panel->kfocB[0], panel->kfocB[1]);
|
||||||
|
WMSetButtonText(panel->kfocB[1], _("Auto: Set keyboard input focus to "\
|
||||||
|
"the window under the mouse pointer"));
|
||||||
|
WMAddBoxSubview(box, WMWidgetView(panel->kfocB[1]), True, True,
|
||||||
|
20, 0, 0);
|
||||||
|
|
||||||
|
WMMapSubwidgets(box);
|
||||||
|
WMMapWidget(box);
|
||||||
|
}
|
||||||
|
|
||||||
/***************** Colormap Installation Mode ****************/
|
/***************** Colormap Installation Mode ****************/
|
||||||
|
|
||||||
|
|||||||
@@ -76,3 +76,5 @@ plmenu.ko Korean Byeong-Chan Kim <redhands@linux.sarang.net>
|
|||||||
plemnu.es Spanish David A. Schekaiban <nb@zaz.net>
|
plemnu.es Spanish David A. Schekaiban <nb@zaz.net>
|
||||||
plmenu.bg Bulgarian Slavei Karadjov <slaff@exco.net>
|
plmenu.bg Bulgarian Slavei Karadjov <slaff@exco.net>
|
||||||
plmenu.sk Slovak judas@hell <tomka@oalevice.sk>
|
plmenu.sk Slovak judas@hell <tomka@oalevice.sk>
|
||||||
|
plmenu.ja Japanese Seiichi SATO <sato@cvs-net.co.jp>
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ static int setCursor();
|
|||||||
|
|
||||||
static WOptionEnumeration seFocusModes[] = {
|
static WOptionEnumeration seFocusModes[] = {
|
||||||
{"Manual", WKF_CLICK, 0}, {"ClickToFocus", WKF_CLICK, 1},
|
{"Manual", WKF_CLICK, 0}, {"ClickToFocus", WKF_CLICK, 1},
|
||||||
{"Sloppy", WKF_SLOPPY, 0}, {"SemiAuto", WKF_SLOPPY, 1},
|
{"Sloppy", WKF_SLOPPY, 0}, {"SemiAuto", WKF_SLOPPY, 1}, {"Auto", WKF_SLOPPY, 1},
|
||||||
{NULL, 0, 0}
|
{NULL, 0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user