all repos — fluxbox @ 839d5b6ad87e7766e558fda23b2636cadeb3d527

custom fork of the fluxbox windowmanager

minor issue
mathias mathias
commit

839d5b6ad87e7766e558fda23b2636cadeb3d527

parent

fd2281a03926c88116dc6f154ebe9b07e826507f

1 files changed, 2 insertions(+), 7 deletions(-)

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

@@ -88,17 +88,12 @@

ResizeCmd::ResizeCmd(const int step_size_x, const int step_size_y) : m_step_size_x(step_size_x), m_step_size_y(step_size_y) { } -template<typename T> -T max(const T& a, const T& b) { - return a >= b ? a : b; -} - void ResizeCmd::real_execute() { - int w = max<int>(static_cast<int>(fbwindow().width() + + int w = std::max<int>(static_cast<int>(fbwindow().width() + m_step_size_x * fbwindow().winClient().width_inc), fbwindow().frame().titlebarHeight() * 2 + 10); - int h = max<int>(static_cast<int>(fbwindow().height() + + int h = std::max<int>(static_cast<int>(fbwindow().height() + m_step_size_y * fbwindow().winClient().height_inc), fbwindow().frame().titlebarHeight() + 10); fbwindow().resize(w, h);