enhanced :NextWindow / :PrevWindow to accept <delta> as parameter, patch from marcus obst
This commit is contained in:
parent
918d1994fa
commit
70bd45e8e1
4 changed files with 16 additions and 6 deletions
|
@ -1,6 +1,10 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 0.9.15:
|
||||
*06/03/09:
|
||||
* Enhanced :NextWindow and :PrevWindow to accept a <delta>,see
|
||||
:RightWindow and :LeftWindow
|
||||
(Thanks Marcus Obst, marcus dot obst at s2003 dot tu minus chemnitz dot de)
|
||||
FbCommandFactory.cc WorkspaceCmd.hh WorkspaceCmd.cc
|
||||
* Bugfix for _net_wm_state_hidden (Thanks Mark)
|
||||
Ewmh.cc
|
||||
* Updated ko_KR translations (Thanks Jo Hyunseok)
|
||||
|
|
|
@ -350,10 +350,10 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
|
|||
//
|
||||
// Workspace commands
|
||||
//
|
||||
else if (command == "nextworkspace" && arguments.empty())
|
||||
return new NextWorkspaceCmd();
|
||||
else if (command == "prevworkspace" && arguments.empty())
|
||||
return new PrevWorkspaceCmd();
|
||||
else if (command == "nextworkspace")
|
||||
return new NextWorkspaceCmd(atoi(arguments.c_str()));
|
||||
else if (command == "prevworkspace")
|
||||
return new PrevWorkspaceCmd(atoi(arguments.c_str()));
|
||||
else if (command == "rightworkspace")
|
||||
return new RightWorkspaceCmd(atoi(arguments.c_str()));
|
||||
else if (command == "leftworkspace")
|
||||
|
|
|
@ -103,13 +103,13 @@ void DirFocusCmd::execute() {
|
|||
void NextWorkspaceCmd::execute() {
|
||||
BScreen *screen = Fluxbox::instance()->mouseScreen();
|
||||
if (screen != 0)
|
||||
screen->nextWorkspace();
|
||||
screen->nextWorkspace(m_option == 0 ? 1 : m_option);
|
||||
}
|
||||
|
||||
void PrevWorkspaceCmd::execute() {
|
||||
BScreen *screen = Fluxbox::instance()->mouseScreen();
|
||||
if (screen != 0)
|
||||
screen->prevWorkspace();
|
||||
screen->prevWorkspace(m_option == 0 ? 1 : m_option);
|
||||
}
|
||||
|
||||
void LeftWorkspaceCmd::execute() {
|
||||
|
|
|
@ -55,12 +55,18 @@ private:
|
|||
|
||||
class NextWorkspaceCmd: public FbTk::Command {
|
||||
public:
|
||||
explicit NextWorkspaceCmd(int option):m_option(option) { }
|
||||
void execute();
|
||||
private:
|
||||
const int m_option;
|
||||
};
|
||||
|
||||
class PrevWorkspaceCmd: public FbTk::Command {
|
||||
public:
|
||||
explicit PrevWorkspaceCmd(int option):m_option(option) { }
|
||||
void execute();
|
||||
private:
|
||||
const int m_option;
|
||||
};
|
||||
|
||||
class LeftWorkspaceCmd: public FbTk::Command {
|
||||
|
|
Loading…
Reference in a new issue