minor cleanup
This commit is contained in:
parent
534db1d409
commit
2b9a38cba5
3 changed files with 7 additions and 6 deletions
|
@ -253,9 +253,6 @@ RestartFluxboxCmd::RestartFluxboxCmd(const string &cmd):m_cmd(cmd){
|
||||||
}
|
}
|
||||||
|
|
||||||
void RestartFluxboxCmd::execute() {
|
void RestartFluxboxCmd::execute() {
|
||||||
if (m_cmd.empty())
|
|
||||||
Fluxbox::instance()->restart();
|
|
||||||
else
|
|
||||||
Fluxbox::instance()->restart(m_cmd.c_str());
|
Fluxbox::instance()->restart(m_cmd.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -170,6 +170,8 @@ void SizeHints::reset(const XSizeHints &sizehint) {
|
||||||
min_height = base_height;
|
min_height = base_height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
void closestPointToAspect(unsigned int &ret_x, unsigned int &ret_y,
|
void closestPointToAspect(unsigned int &ret_x, unsigned int &ret_y,
|
||||||
unsigned int point_x, unsigned int point_y,
|
unsigned int point_x, unsigned int point_y,
|
||||||
unsigned int aspect_x, unsigned int aspect_y) {
|
unsigned int aspect_x, unsigned int aspect_y) {
|
||||||
|
@ -188,6 +190,8 @@ unsigned int decreaseToMultiple(unsigned int val, unsigned int inc) {
|
||||||
return val % inc ? val - (val % inc) : val;
|
return val % inc ? val - (val % inc) : val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // end of anonymous namespace
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Changes width and height to the nearest (lower) value
|
* Changes width and height to the nearest (lower) value
|
||||||
* that conforms to it's size hints.
|
* that conforms to it's size hints.
|
||||||
|
|
|
@ -1216,7 +1216,7 @@ void Fluxbox::restart(const char *prog) {
|
||||||
|
|
||||||
m_restarting = true;
|
m_restarting = true;
|
||||||
|
|
||||||
if (prog) {
|
if (prog && *prog != '\0') {
|
||||||
m_restart_argument = prog;
|
m_restart_argument = prog;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue