respect border size in the MoveTo action, especially at the right and lower border of the screen.
mathias mathias
2 files changed,
4 insertions(+),
2 deletions(-)
M
src/CurrentWindowCmd.cc
→
src/CurrentWindowCmd.cc
@@ -143,11 +143,11 @@
const int head = fbwindow().screen().getHead(fbwindow().fbWindow()); if (m_refc & MoveToCmd::LOWER) - y = fbwindow().screen().maxBottom(head) - fbwindow().height() - m_step_size_y; + y = fbwindow().screen().maxBottom(head) - fbwindow().height() - 2 * fbwindow().frame().window().borderWidth() - m_step_size_y; if (m_refc & MoveToCmd::UPPER) y = fbwindow().screen().maxTop(head) + m_step_size_y; if (m_refc & MoveToCmd::RIGHT) - x = fbwindow().screen().maxRight(head) - fbwindow().width() - m_step_size_x; + x = fbwindow().screen().maxRight(head) - fbwindow().width() - 2 * fbwindow().frame().window().borderWidth() - m_step_size_x; if (m_refc & MoveToCmd::LEFT) x = fbwindow().screen().maxLeft(head) + m_step_size_x;