aboutsummaryrefslogtreecommitdiff
path: root/src/SystemTray.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SystemTray.cc')
-rw-r--r--src/SystemTray.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc
index 846181f..9811508 100644
--- a/src/SystemTray.cc
+++ b/src/SystemTray.cc
@@ -75,18 +75,15 @@ public:
75 int actual_format; 75 int actual_format;
76 unsigned long nitems, bytes_after; 76 unsigned long nitems, bytes_after;
77 unsigned long *prop; 77 unsigned long *prop;
78 bool mapped = false;
79 Atom embed_info = SystemTray::getXEmbedInfoAtom(); 78 Atom embed_info = SystemTray::getXEmbedInfoAtom();
80 if (property(embed_info, 0l, 2l, false, embed_info, 79 if (property(embed_info, 0l, 2l, false, embed_info,
81 &actual_type, &actual_format, &nitems, &bytes_after, 80 &actual_type, &actual_format, &nitems, &bytes_after,
82 (unsigned char **) &prop) && prop != 0) { 81 (unsigned char **) &prop) && prop != 0) {
83 mapped = (bool)(static_cast<unsigned long>(prop[1]) & XEMBED_MAPPED);
84 XFree(static_cast<void *>(prop));
85
86
87 fbdbg<<"(SystemTray::TrayWindow::getMappedDefault(): XEMBED_MAPPED = "<<mapped<<endl;
88
89 82
83 XFree(static_cast<void *>(prop));
84 fbdbg << "(SystemTray::TrayWindow::getMappedDefault(): XEMBED_MAPPED = "
85 << (bool)(static_cast<unsigned long>(prop[1]) & XEMBED_MAPPED)
86 << endl;
90 } 87 }
91 return true; 88 return true;
92 } 89 }