aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 5dd9bca..afd5fb5 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -1460,8 +1460,8 @@ void FbWinFrame::applyDecorations() {
1460} 1460}
1461 1461
1462bool FbWinFrame::setBorderWidth(bool do_move) { 1462bool FbWinFrame::setBorderWidth(bool do_move) {
1463 unsigned int border_width = m_decoration_mask & DECORM_BORDER ? 1463 unsigned int border_width = theme()->border().width();
1464 theme()->border().width() : 0; 1464 unsigned int win_bw = m_decoration_mask & DECORM_BORDER ? border_width : 0;
1465 1465
1466 if (border_width && 1466 if (border_width &&
1467 theme()->border().color().pixel() != window().borderColor()) { 1467 theme()->border().color().pixel() != window().borderColor()) {
@@ -1473,7 +1473,8 @@ bool FbWinFrame::setBorderWidth(bool do_move) {
1473 tabcontainer().setBorderColor(theme()->border().color()); 1473 tabcontainer().setBorderColor(theme()->border().color());
1474 } 1474 }
1475 1475
1476 if (border_width == window().borderWidth()) 1476 if (border_width == handle().borderWidth() &&
1477 win_bw == window().borderWidth())
1477 return false; 1478 return false;
1478 1479
1479 int grav_x=0, grav_y=0; 1480 int grav_x=0, grav_y=0;
@@ -1490,7 +1491,7 @@ bool FbWinFrame::setBorderWidth(bool do_move) {
1490 if (m_use_handle) 1491 if (m_use_handle)
1491 bw_changes += static_cast<signed>(border_width - handle().borderWidth()); 1492 bw_changes += static_cast<signed>(border_width - handle().borderWidth());
1492 1493
1493 window().setBorderWidth(border_width); 1494 window().setBorderWidth(win_bw);
1494 1495
1495 setTabMode(NOTSET); 1496 setTabMode(NOTSET);
1496 1497