all repos — fluxbox @ 64387c87065127bbddfebe170823295df78865c5

custom fork of the fluxbox windowmanager

added SetWorkspaceNameCmd
fluxgen fluxgen
commit

64387c87065127bbddfebe170823295df78865c5

parent

e984c66191b0207188a0cc90ee0fde392940ffe7

2 files changed, 18 insertions(+), 2 deletions(-)

jump to
M src/FbCommands.ccsrc/FbCommands.cc

@@ -19,13 +19,14 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.cc,v 1.13 2003/08/11 14:52:10 fluxgen Exp $ +// $Id: FbCommands.cc,v 1.14 2003/08/26 23:52:09 fluxgen Exp $ #include "FbCommands.hh" #include "fluxbox.hh" #include "FbTk/Theme.hh" #include "Screen.hh" #include "Menu.hh" +#include "SetWorkspaceName.hh" #include <sys/types.h> #include <unistd.h>

@@ -111,6 +112,16 @@ if (screen->getRootmenu()) {

screen->getRootmenu()->show(); screen->getRootmenu()->grabInputFocus(); } +} + +void SetWorkspaceNameCmd::execute() { + + BScreen *screen = Fluxbox::instance()->mouseScreen(); + if (screen == 0) + return; + + SetWorkspaceName *win = new SetWorkspaceName(*screen); + win->show(); } }; // end namespace FbCommands
M src/FbCommands.hhsrc/FbCommands.hh

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: FbCommands.hh,v 1.8 2003/07/01 20:24:19 fluxgen Exp $ +// $Id: FbCommands.hh,v 1.9 2003/08/26 23:51:16 fluxgen Exp $ // \file contains basic commands to restart, reconfigure, execute command and exit fluxbox

@@ -79,6 +79,11 @@ std::string m_filename;

}; class ShowRootMenuCmd: public FbTk::Command { +public: + void execute(); +}; + +class SetWorkspaceNameCmd: public FbTk::Command { public: void execute(); };