aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Button.cc')
-rw-r--r--src/FbTk/Button.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/Button.cc b/src/FbTk/Button.cc
index f13adf3..a9b27b2 100644
--- a/src/FbTk/Button.cc
+++ b/src/FbTk/Button.cc
@@ -129,11 +129,11 @@ void Button::buttonReleaseEvent(XButtonEvent &event) {
129 if (!been_deleted) { 129 if (!been_deleted) {
130 mark_if_deleted = 0; 130 mark_if_deleted = 0;
131 if (m_background_pm) { 131 if (m_background_pm) {
132 if (m_pressed_pm != 0) { 132 if (m_pressed_pm != 0 || m_pressed_color.isAllocated()) {
133 update = true; 133 update = true;
134 setBackgroundPixmap(m_background_pm); 134 setBackgroundPixmap(m_background_pm);
135 } 135 }
136 } else if (m_pressed_color.isAllocated()) { 136 } else if (m_pressed_pm != 0 || m_pressed_color.isAllocated()) {
137 update = true; 137 update = true;
138 setBackgroundColor(m_background_color); 138 setBackgroundColor(m_background_color);
139 } 139 }