diff options
author | mathias <mathias> | 2005-07-05 21:57:33 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-07-05 21:57:33 (GMT) |
commit | 56580b2321ddd3e8b8620a0972723bdd7375eef9 (patch) | |
tree | 79fbb28e8738e14a3b933d0622c94dd32fe5f825 /src/CurrentWindowCmd.cc | |
parent | 093b06edd3709b05d4cbb2c5a007c0a821770f36 (diff) | |
download | fluxbox-56580b2321ddd3e8b8620a0972723bdd7375eef9.zip fluxbox-56580b2321ddd3e8b8620a0972723bdd7375eef9.tar.bz2 |
respect border size in the MoveTo action, especially at the right and lower
border of the screen.
Diffstat (limited to 'src/CurrentWindowCmd.cc')
-rw-r--r-- | src/CurrentWindowCmd.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index f6b38aa..084362b 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc | |||
@@ -143,11 +143,11 @@ void MoveToCmd::real_execute() { | |||
143 | const int head = fbwindow().screen().getHead(fbwindow().fbWindow()); | 143 | const int head = fbwindow().screen().getHead(fbwindow().fbWindow()); |
144 | 144 | ||
145 | if (m_refc & MoveToCmd::LOWER) | 145 | if (m_refc & MoveToCmd::LOWER) |
146 | y = fbwindow().screen().maxBottom(head) - fbwindow().height() - m_step_size_y; | 146 | y = fbwindow().screen().maxBottom(head) - fbwindow().height() - 2 * fbwindow().frame().window().borderWidth() - m_step_size_y; |
147 | if (m_refc & MoveToCmd::UPPER) | 147 | if (m_refc & MoveToCmd::UPPER) |
148 | y = fbwindow().screen().maxTop(head) + m_step_size_y; | 148 | y = fbwindow().screen().maxTop(head) + m_step_size_y; |
149 | if (m_refc & MoveToCmd::RIGHT) | 149 | if (m_refc & MoveToCmd::RIGHT) |
150 | x = fbwindow().screen().maxRight(head) - fbwindow().width() - m_step_size_x; | 150 | x = fbwindow().screen().maxRight(head) - fbwindow().width() - 2 * fbwindow().frame().window().borderWidth() - m_step_size_x; |
151 | if (m_refc & MoveToCmd::LEFT) | 151 | if (m_refc & MoveToCmd::LEFT) |
152 | x = fbwindow().screen().maxLeft(head) + m_step_size_x; | 152 | x = fbwindow().screen().maxLeft(head) + m_step_size_x; |
153 | 153 | ||