aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2003-05-19 15:32:47 (GMT)
committerrathnor <rathnor>2003-05-19 15:32:47 (GMT)
commitb68b1c7623be09100bb1e6a0d3923d6e1c86a91a (patch)
treeee8c1f69ab45b29943565384c877df15f3a9634d /src/Window.cc
parent3b2afa5a305f0106baef32068066b7d41eeab777 (diff)
downloadfluxbox-b68b1c7623be09100bb1e6a0d3923d6e1c86a91a.zip
fluxbox-b68b1c7623be09100bb1e6a0d3923d6e1c86a91a.tar.bz2
xinerama updates
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 21018c2..46c8e63 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Window.cc,v 1.179 2003/05/17 11:08:06 fluxgen Exp $ 25// $Id: Window.cc,v 1.180 2003/05/19 15:32:47 rathnor Exp $
26 26
27#include "Window.hh" 27#include "Window.hh"
28 28
@@ -1386,12 +1386,12 @@ void FluxboxWindow::maximize() {
1386 m_old_height = frame().height(); 1386 m_old_height = frame().height();
1387 m_old_pos_x = frame().x(); 1387 m_old_pos_x = frame().x();
1388 m_old_pos_y = frame().y(); 1388 m_old_pos_y = frame().y();
1389 unsigned int left_x = screen().maxLeft(); 1389 unsigned int left_x = screen().maxLeft(frame().window());
1390 unsigned int max_width = screen().maxRight(); 1390 unsigned int max_width = screen().maxRight(frame().window());
1391 unsigned int max_top = screen().maxTop(); 1391 unsigned int max_top = screen().maxTop(frame().window());
1392 moveResize(left_x, max_top, 1392 moveResize(left_x, max_top,
1393 max_width - left_x, 1393 max_width - left_x - 2*frame().window().borderWidth(),
1394 screen().maxBottom() - max_top - frame().window().borderWidth()); 1394 screen().maxBottom(frame().window()) - max_top - 2*frame().window().borderWidth());
1395 } else { // demaximize, restore to old values 1395 } else { // demaximize, restore to old values
1396 moveResize(m_old_pos_x, m_old_pos_y, 1396 moveResize(m_old_pos_x, m_old_pos_y,
1397 m_old_width, m_old_height); 1397 m_old_width, m_old_height);
@@ -1401,8 +1401,8 @@ void FluxboxWindow::maximize() {
1401} 1401}
1402 1402
1403void FluxboxWindow::maximizeHorizontal() { 1403void FluxboxWindow::maximizeHorizontal() {
1404 unsigned int left_x = screen().maxLeft(); 1404 unsigned int left_x = screen().maxLeft(frame().window());
1405 unsigned int max_width = screen().maxRight(); 1405 unsigned int max_width = screen().maxRight(frame().window());
1406 moveResize(left_x, frame().y(), 1406 moveResize(left_x, frame().y(),
1407 max_width - left_x, frame().height() - frame().window().borderWidth()); 1407 max_width - left_x, frame().height() - frame().window().borderWidth());
1408 1408
@@ -1412,10 +1412,10 @@ void FluxboxWindow::maximizeHorizontal() {
1412 Maximize window horizontal 1412 Maximize window horizontal
1413 */ 1413 */
1414void FluxboxWindow::maximizeVertical() { 1414void FluxboxWindow::maximizeVertical() {
1415 unsigned int max_top = screen().maxTop(); 1415 unsigned int max_top = screen().maxTop(frame().window());
1416 moveResize(frame().x(), max_top, 1416 moveResize(frame().x(), max_top,
1417 frame().width() - frame().window().borderWidth(), 1417 frame().width() - frame().window().borderWidth(),
1418 screen().maxBottom() - max_top); 1418 screen().maxBottom(frame().window()) - max_top);
1419} 1419}
1420 1420
1421 1421