added :Focus key command
This commit is contained in:
parent
ea7801d143
commit
2e96a07cf7
2 changed files with 10 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
||||||
(Format: Year/Month/Day)
|
(Format: Year/Month/Day)
|
||||||
Changes for 1.0.1:
|
Changes for 1.0.1:
|
||||||
*07/11/16:
|
*07/11/16:
|
||||||
|
* Added new key command :Focus [<pattern>] that focuses a window (e.g., using
|
||||||
|
OnWindow or specified using a window pattern) (Mark, thanks Tomas Janousek)
|
||||||
|
FbCommandFactory.cc
|
||||||
* Using ToggleDecor from Deco=TAB should hide tabs (thanks Tomas Janousek)
|
* Using ToggleDecor from Deco=TAB should hide tabs (thanks Tomas Janousek)
|
||||||
Window.cc
|
Window.cc
|
||||||
*07/11/12:
|
*07/11/12:
|
||||||
|
|
|
@ -65,9 +65,10 @@ static int getint(const char *str, int defaultvalue) {
|
||||||
FbCommandFactory::FbCommandFactory() {
|
FbCommandFactory::FbCommandFactory() {
|
||||||
// setup commands that we can handle
|
// setup commands that we can handle
|
||||||
const char* commands[] = {
|
const char* commands[] = {
|
||||||
"addworkspace",
|
"activate",
|
||||||
|
"addworkspace",
|
||||||
"arrangewindows",
|
"arrangewindows",
|
||||||
"attach",
|
"attach",
|
||||||
"bindkey",
|
"bindkey",
|
||||||
"clientmenu",
|
"clientmenu",
|
||||||
"close",
|
"close",
|
||||||
|
@ -81,6 +82,7 @@ FbCommandFactory::FbCommandFactory() {
|
||||||
"execcommand",
|
"execcommand",
|
||||||
"execute",
|
"execute",
|
||||||
"exit",
|
"exit",
|
||||||
|
"focus",
|
||||||
"focusup",
|
"focusup",
|
||||||
"focusdown",
|
"focusdown",
|
||||||
"focusleft",
|
"focusleft",
|
||||||
|
@ -124,7 +126,7 @@ FbCommandFactory::FbCommandFactory() {
|
||||||
"reconfig",
|
"reconfig",
|
||||||
"reconfigure",
|
"reconfigure",
|
||||||
"reloadstyle",
|
"reloadstyle",
|
||||||
"removelastworkspace",
|
"removelastworkspace",
|
||||||
"resizeto",
|
"resizeto",
|
||||||
"resize",
|
"resize",
|
||||||
"resizehorizontal",
|
"resizehorizontal",
|
||||||
|
@ -419,6 +421,8 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
|
||||||
return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lower)), arguments);
|
return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lower)), arguments);
|
||||||
else if (command == "lowerlayer")
|
else if (command == "lowerlayer")
|
||||||
return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lowerLayer)), arguments);
|
return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::lowerLayer)), arguments);
|
||||||
|
else if (command == "activate" || command == "focus")
|
||||||
|
return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd((void (FluxboxWindow::*)())&FluxboxWindow::focus)), arguments);
|
||||||
else if (command == "close")
|
else if (command == "close")
|
||||||
return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::close)), arguments);
|
return new WindowListCmd(FbTk::RefCount<WindowHelperCmd>(new CurrentWindowCmd(&FluxboxWindow::close)), arguments);
|
||||||
else if (command == "closeallwindows")
|
else if (command == "closeallwindows")
|
||||||
|
|
Loading…
Reference in a new issue