diff options
-rw-r--r-- | src/WinButton.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WinButton.cc b/src/WinButton.cc index 33995b4..36639f5 100644 --- a/src/WinButton.cc +++ b/src/WinButton.cc | |||
@@ -312,7 +312,7 @@ void WinButton::clear() { | |||
312 | FbTk::Button::clear(); | 312 | FbTk::Button::clear(); |
313 | 313 | ||
314 | // ensure the m_listen_to has actually a client | 314 | // ensure the m_listen_to has actually a client |
315 | if (m_type == MENUICON && m_listen_to.numClients() && ( | 315 | if (m_type == MENUICON && !m_listen_to.empty() && ( |
316 | !m_icon_pixmap.drawable() || | 316 | !m_icon_pixmap.drawable() || |
317 | (m_icon_pixmap.width() != width() - 4 || | 317 | (m_icon_pixmap.width() != width() - 4 || |
318 | m_icon_pixmap.height() != height() - 4))) { | 318 | m_icon_pixmap.height() != height() - 4))) { |
@@ -347,7 +347,7 @@ void WinButton::clear() { | |||
347 | void WinButton::update(FbTk::Subject *subj) { | 347 | void WinButton::update(FbTk::Subject *subj) { |
348 | 348 | ||
349 | // just checking, if we the app provides a pixmap. | 349 | // just checking, if we the app provides a pixmap. |
350 | if (m_type == MENUICON && m_listen_to.numClients()) { | 350 | if (m_type == MENUICON && !m_listen_to.empty()) { |
351 | XWMHints* hints = XGetWMHints(m_listen_to.fbWindow().display(), | 351 | XWMHints* hints = XGetWMHints(m_listen_to.fbWindow().display(), |
352 | m_listen_to.winClient().window()); | 352 | m_listen_to.winClient().window()); |
353 | if (hints == 0) { | 353 | if (hints == 0) { |