minor optimization
mathias mathias
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/WinButton.cc
→
src/WinButton.cc
@@ -312,7 +312,7 @@ void WinButton::clear() {
FbTk::Button::clear(); // ensure the m_listen_to has actually a client - if (m_type == MENUICON && m_listen_to.numClients() && ( + if (m_type == MENUICON && !m_listen_to.empty() && ( !m_icon_pixmap.drawable() || (m_icon_pixmap.width() != width() - 4 || m_icon_pixmap.height() != height() - 4))) {@@ -347,7 +347,7 @@
void WinButton::update(FbTk::Subject *subj) { // just checking, if we the app provides a pixmap. - if (m_type == MENUICON && m_listen_to.numClients()) { + if (m_type == MENUICON && !m_listen_to.empty()) { XWMHints* hints = XGetWMHints(m_listen_to.fbWindow().display(), m_listen_to.winClient().window()); if (hints == 0) {