aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-08-16 13:30:09 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-08-16 13:30:09 (GMT)
commit72fd5e03a48396e6feec86534d266c68a9edd915 (patch)
treea822f86184eb84f44db5cda77866ef14800e6f2b /src/FbTk
parent38654bae459716409ad2ee7975671fc2f131c869 (diff)
downloadfluxbox-72fd5e03a48396e6feec86534d266c68a9edd915.zip
fluxbox-72fd5e03a48396e6feec86534d266c68a9edd915.tar.bz2
revert focus when closing dialogs
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/TextButton.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/TextButton.cc b/src/FbTk/TextButton.cc
index 79ed1ab..380537e 100644
--- a/src/FbTk/TextButton.cc
+++ b/src/FbTk/TextButton.cc
@@ -67,10 +67,10 @@ bool TextButton::setOrientation(FbTk::Orientation orient) {
67 return false; 67 return false;
68 invalidateBackground(); 68 invalidateBackground();
69 69
70 if ((m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) && 70 if (((m_orientation == FbTk::ROT0 || m_orientation == FbTk::ROT180) &&
71 (orient == FbTk::ROT90 || orient == FbTk::ROT270) || 71 (orient == FbTk::ROT90 || orient == FbTk::ROT270)) ||
72 (m_orientation == FbTk::ROT90 || m_orientation == FbTk::ROT270) && 72 ((m_orientation == FbTk::ROT90 || m_orientation == FbTk::ROT270) &&
73 (orient == FbTk::ROT0 || orient == FbTk::ROT180)) { 73 (orient == FbTk::ROT0 || orient == FbTk::ROT180))) {
74 // flip width and height 74 // flip width and height
75 m_orientation = orient; 75 m_orientation = orient;
76 resize(height(), width()); 76 resize(height(), width());