aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinButton.cc')
-rw-r--r--src/WinButton.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc
index 703820d..ff0ff76 100644
--- a/src/WinButton.cc
+++ b/src/WinButton.cc
@@ -151,6 +151,8 @@ Pixmap WinButton::getPressedPixmap() const {
151 case MINIMIZE: 151 case MINIMIZE:
152 return m_pressed_theme->iconifyPixmap().pixmap().drawable(); 152 return m_pressed_theme->iconifyPixmap().pixmap().drawable();
153 case STICK: 153 case STICK:
154 if (m_listen_to.isStuck())
155 return m_pressed_theme->stuckPixmap().pixmap().drawable();
154 return m_pressed_theme->stickPixmap().pixmap().drawable(); 156 return m_pressed_theme->stickPixmap().pixmap().drawable();
155 case CLOSE: 157 case CLOSE:
156 return m_pressed_theme->closePixmap().pixmap().drawable(); 158 return m_pressed_theme->closePixmap().pixmap().drawable();
@@ -308,7 +310,7 @@ void WinButton::updateAll() {
308 setBackgroundPixmap(my_pm); 310 setBackgroundPixmap(my_pm);
309 311
310 // incorrect, pressed_pixmap is stateful in shade, so we'll do oneoff for now 312 // incorrect, pressed_pixmap is stateful in shade, so we'll do oneoff for now
311 if (m_type == SHADE) { 313 if (m_type == SHADE || m_type == STICK) {
312 Pixmap p_pm = getPressedPixmap(); 314 Pixmap p_pm = getPressedPixmap();
313 if (p_pm != None) 315 if (p_pm != None)
314 setPressedPixmap(p_pm); 316 setPressedPixmap(p_pm);