aboutsummaryrefslogtreecommitdiff
path: root/src/WinButton.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-03-27 08:43:09 (GMT)
committermarkt <markt>2007-03-27 08:43:09 (GMT)
commit9ebfea7944a1455a74cb70781373d83f50ad196c (patch)
tree919096d5e05e9b70499433bea3db2faf19b27bae /src/WinButton.cc
parent58e280952a47fc3fb77b4659a21cc4ce6a73066e (diff)
downloadfluxbox-9ebfea7944a1455a74cb70781373d83f50ad196c.zip
fluxbox-9ebfea7944a1455a74cb70781373d83f50ad196c.tar.bz2
lots and lots of code cleanup, plus introduced new ClientMenu class
Diffstat (limited to 'src/WinButton.cc')
-rw-r--r--src/WinButton.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc
index f690f93..cdfb8b5 100644
--- a/src/WinButton.cc
+++ b/src/WinButton.cc
@@ -321,15 +321,15 @@ void WinButton::update(FbTk::Subject *subj) {
321 321
322 Display* display = m_listen_to.fbWindow().display(); 322 Display* display = m_listen_to.fbWindow().display();
323 int screen = m_listen_to.screen().screenNumber(); 323 int screen = m_listen_to.screen().screenNumber();
324 if (m_listen_to.usePixmap()) { 324 if (m_listen_to.icon().pixmap().drawable() != None) {
325 m_icon_pixmap.copy(m_listen_to.iconPixmap().drawable(), 325 m_icon_pixmap.copy(m_listen_to.icon().pixmap().drawable(),
326 DefaultDepth(display, screen), screen); 326 DefaultDepth(display, screen), screen);
327 m_icon_pixmap.scale(width() - 4, height() - 4); 327 m_icon_pixmap.scale(width() - 4, height() - 4);
328 } else 328 } else
329 m_icon_pixmap.release(); 329 m_icon_pixmap.release();
330 330
331 if (m_listen_to.useMask()) { 331 if (m_listen_to.icon().mask().drawable() != None) {
332 m_icon_mask.copy(m_listen_to.iconMask().drawable(), 0, 0); 332 m_icon_mask.copy(m_listen_to.icon().mask().drawable(), 0, 0);
333 m_icon_mask.scale(width() - 4, height() - 4); 333 m_icon_mask.scale(width() - 4, height() - 4);
334 } else 334 } else
335 m_icon_mask.release(); 335 m_icon_mask.release();