aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/WinButton.cc4
-rw-r--r--src/WinButtonTheme.hh1
2 files changed, 4 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);
diff --git a/src/WinButtonTheme.hh b/src/WinButtonTheme.hh
index 4765822..224fc6c 100644
--- a/src/WinButtonTheme.hh
+++ b/src/WinButtonTheme.hh
@@ -51,6 +51,7 @@ public:
51 const FbTk::PixmapWithMask &stickPixmap() const { return *m_stick_pm; } 51 const FbTk::PixmapWithMask &stickPixmap() const { return *m_stick_pm; }
52 FbTk::PixmapWithMask &stickPixmap() { return *m_stick_pm; } 52 FbTk::PixmapWithMask &stickPixmap() { return *m_stick_pm; }
53 53
54 const FbTk::PixmapWithMask &stuckPixmap() const { return *m_stuck_pm; }
54 FbTk::PixmapWithMask &stuckPixmap() { return *m_stuck_pm; } 55 FbTk::PixmapWithMask &stuckPixmap() { return *m_stuck_pm; }
55 56
56 const FbTk::PixmapWithMask &shadePixmap() const { return *m_shade_pm; } 57 const FbTk::PixmapWithMask &shadePixmap() const { return *m_shade_pm; }