respect border size in the MoveTo action, especially at the right and lower

border of the screen.
This commit is contained in:
mathias 2005-07-05 21:57:33 +00:00
parent 093b06edd3
commit 56580b2321
2 changed files with 4 additions and 2 deletions

View file

@ -1,6 +1,8 @@
(Format: Year/Month/Day)
Changes for 0.9.14:
*05/07/05:
* Respect border size in the MoveTo action (Mathias)
CurrentWindowCmd.cc
* Added kcommander, Valknut, dcgui-qt, quickdc, asami, amsn to fbgm (Mathias)
fluxbox-generate_menu.in
*05/06/30:

View file

@ -143,11 +143,11 @@ void MoveToCmd::real_execute() {
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;