added "Fullscreen" - command, removes borders and maximizes to
the full screen ... hence the name :)
This commit is contained in:
parent
1a6d067013
commit
12dff3d3a9
3 changed files with 15 additions and 0 deletions
|
@ -129,3 +129,8 @@ void ResizeToCmd::real_execute() {
|
||||||
if (m_step_size_x > 0 && m_step_size_y > 0)
|
if (m_step_size_x > 0 && m_step_size_y > 0)
|
||||||
fbwindow().resize(m_step_size_x, m_step_size_y);
|
fbwindow().resize(m_step_size_x, m_step_size_y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FullscreenCmd::FullscreenCmd() { }
|
||||||
|
void FullscreenCmd::real_execute() {
|
||||||
|
fbwindow().setFullscreen(!fbwindow().isFullscreen());
|
||||||
|
}
|
||||||
|
|
|
@ -154,4 +154,11 @@ private:
|
||||||
const int m_step_size_x;
|
const int m_step_size_x;
|
||||||
const int m_step_size_y;
|
const int m_step_size_y;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class FullscreenCmd: public WindowHelperCmd{
|
||||||
|
public:
|
||||||
|
explicit FullscreenCmd();
|
||||||
|
protected:
|
||||||
|
void real_execute();
|
||||||
|
};
|
||||||
#endif // CURRENTWINDOWCMD_HH
|
#endif // CURRENTWINDOWCMD_HH
|
||||||
|
|
|
@ -63,6 +63,7 @@ FbCommandFactory::FbCommandFactory() {
|
||||||
"focusdown",
|
"focusdown",
|
||||||
"focusleft",
|
"focusleft",
|
||||||
"focusright",
|
"focusright",
|
||||||
|
"fullscreen",
|
||||||
"iconify",
|
"iconify",
|
||||||
"killwindow",
|
"killwindow",
|
||||||
"leftworkspace",
|
"leftworkspace",
|
||||||
|
@ -208,6 +209,8 @@ FbTk::Command *FbCommandFactory::stringToCommand(const std::string &command,
|
||||||
//
|
//
|
||||||
// Current focused window commands
|
// Current focused window commands
|
||||||
//
|
//
|
||||||
|
else if (command == "fullscreen")
|
||||||
|
return new FullscreenCmd();
|
||||||
else if (command == "minimizewindow" || command == "minimize" || command == "iconify")
|
else if (command == "minimizewindow" || command == "minimize" || command == "iconify")
|
||||||
return new CurrentWindowCmd(&FluxboxWindow::iconify);
|
return new CurrentWindowCmd(&FluxboxWindow::iconify);
|
||||||
else if (command == "maximizewindow" || command == "maximize")
|
else if (command == "maximizewindow" || command == "maximize")
|
||||||
|
|
Loading…
Reference in a new issue