aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathias <mathias>2005-05-11 08:57:53 (GMT)
committermathias <mathias>2005-05-11 08:57:53 (GMT)
commit44f2af5c10fb2af07ed5577dc9eb5554b7dfb403 (patch)
treef42cc3e932deae2186a9b33bee02fe53dd287234 /src
parentf7261680510f069afc7bb8370bc1b0b83f66c1d9 (diff)
downloadfluxbox_pavel-44f2af5c10fb2af07ed5577dc9eb5554b7dfb403.zip
fluxbox_pavel-44f2af5c10fb2af07ed5577dc9eb5554b7dfb403.tar.bz2
minor optimization
Diffstat (limited to 'src')
-rw-r--r--src/WinButton.cc4
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() {
347void WinButton::update(FbTk::Subject *subj) { 347void 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) {