parent
839d5b6ad8
commit
c8d71542dc
4 changed files with 257 additions and 246 deletions
|
@ -284,7 +284,7 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
|
|||
return new SendToNextWorkspaceCmd(atoi(arguments.c_str()));
|
||||
else if (command == "sendtoprevworkspace")
|
||||
return new SendToPrevWorkspaceCmd(atoi(arguments.c_str()));
|
||||
else if (command == "killwindow")
|
||||
else if (command == "killwindow" || command == "kill")
|
||||
return new KillWindowCmd();
|
||||
else if (command == "nexttab")
|
||||
return new CurrentWindowCmd(&FluxboxWindow::nextClient);
|
||||
|
|
|
@ -476,6 +476,9 @@ bool MenuCreator::createWindowMenuItem(const std::string &type,
|
|||
} else if (type == "close") {
|
||||
RefCmd close_cmd(new WindowCmd(win, &FluxboxWindow::close));
|
||||
menu.insert(label.empty()?_FBTEXT(Windowmenu, Close, "Close", "Close the window"):label.c_str(), close_cmd);
|
||||
} else if (type == "kill" || type == "killwindow") {
|
||||
RefCmd kill_cmd(new WindowCmd(win, &FluxboxWindow::kill));
|
||||
menu.insert(label.empty()?_FBTEXT(Windowmenu, Kill, "Kill", "Kill the window"):label.c_str(), kill_cmd);
|
||||
} else if (type == "lower") {
|
||||
RefCmd lower_cmd(new WindowCmd(win, &FluxboxWindow::lower));
|
||||
menu.insert(label.empty()?_FBTEXT(Windowmenu, Lower, "Lower", "Lower the window"):label.c_str(), lower_cmd);
|
||||
|
|
496
src/Window.cc
496
src/Window.cc
File diff suppressed because it is too large
Load diff
|
@ -191,6 +191,8 @@ public:
|
|||
void deiconify(bool reassoc = true, bool do_raise = true);
|
||||
/// close current client
|
||||
void close();
|
||||
/// kill current client
|
||||
void kill();
|
||||
/// set the window in withdrawn state
|
||||
void withdraw(bool interrupt_moving);
|
||||
/// toggle maximize
|
||||
|
|
Loading…
Reference in a new issue