aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/CurrentWindowCmd.cc2
1 files changed, 2 insertions, 0 deletions
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() {
677 677
678 if (m_is_relative_x) { 678 if (m_is_relative_x) {
679 dx = fbwindow().screen().calRelativeWidth(head, dx); 679 dx = fbwindow().screen().calRelativeWidth(head, dx);
680 dx -= 2 * fbwindow().frame().window().borderWidth();
680 if(dx <= 0) { 681 if(dx <= 0) {
681 dx = fbwindow().width(); 682 dx = fbwindow().width();
682 } 683 }
@@ -684,6 +685,7 @@ void ResizeToCmd::real_execute() {
684 685
685 if (m_is_relative_y) { 686 if (m_is_relative_y) {
686 dy = fbwindow().screen().calRelativeHeight(head, dy); 687 dy = fbwindow().screen().calRelativeHeight(head, dy);
688 dy -= 2 * fbwindow().frame().window().borderWidth();
687 if(dy <= 0) { 689 if(dy <= 0) {
688 dy = fbwindow().height(); 690 dy = fbwindow().height();
689 } 691 }