From ed7bcc5dbcbd2d3e4dddb4c57219ef6beda240e6 Mon Sep 17 00:00:00 2001 From: Arkadiusz Bokowy Date: Sun, 28 Sep 2014 17:33:53 +0200 Subject: Corrections for border width for relative resize --- src/CurrentWindowCmd.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/CurrentWindowCmd.cc b/src/CurrentWindowCmd.cc index 9c3526d..dd43d43 100644 --- a/src/CurrentWindowCmd.cc +++ b/src/CurrentWindowCmd.cc @@ -677,6 +677,7 @@ void ResizeToCmd::real_execute() { if (m_is_relative_x) { dx = fbwindow().screen().calRelativeWidth(head, dx); + dx -= 2 * fbwindow().frame().window().borderWidth(); if(dx <= 0) { dx = fbwindow().width(); } @@ -684,6 +685,7 @@ void ResizeToCmd::real_execute() { if (m_is_relative_y) { dy = fbwindow().screen().calRelativeHeight(head, dy); + dy -= 2 * fbwindow().frame().window().borderWidth(); if(dy <= 0) { dy = fbwindow().height(); } -- cgit v0.11.2