aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArkadiusz Bokowy <arkadiusz.bokowy@gmail.com>2014-09-28 15:33:53 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2014-09-29 07:06:03 (GMT)
commited7bcc5dbcbd2d3e4dddb4c57219ef6beda240e6 (patch)
tree82cb8546d07e482a12cf9a452600c8f822df2981 /src
parent786d8bacc0709bccdfa91eeefb9ce8a4beb546b6 (diff)
downloadfluxbox-ed7bcc5dbcbd2d3e4dddb4c57219ef6beda240e6.zip
fluxbox-ed7bcc5dbcbd2d3e4dddb4c57219ef6beda240e6.tar.bz2
Corrections for border width for relative resize
Diffstat (limited to 'src')
-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 }