aboutsummaryrefslogtreecommitdiff
path: root/src/SystemTray.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SystemTray.cc')
-rw-r--r--src/SystemTray.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc
index 05d8d09..3a38bb1 100644
--- a/src/SystemTray.cc
+++ b/src/SystemTray.cc
@@ -180,10 +180,8 @@ SystemTray::SystemTray(const FbTk::FbWindow& parent,
180 Display *disp = fluxbox->display(); 180 Display *disp = fluxbox->display();
181 181
182 // setup atom name to _NET_SYSTEM_TRAY_S<screen number> 182 // setup atom name to _NET_SYSTEM_TRAY_S<screen number>
183 char intbuff[16];
184 sprintf(intbuff, "%d", m_window.screenNumber());
185 string atom_name("_NET_SYSTEM_TRAY_S"); 183 string atom_name("_NET_SYSTEM_TRAY_S");
186 atom_name += intbuff; // append number 184 atom_name += FbTk::StringUtil::number2String(m_window.screenNumber());
187 185
188 // get selection owner and see if it's free 186 // get selection owner and see if it's free
189 Atom tray_atom = XInternAtom(disp, atom_name.c_str(), False); 187 Atom tray_atom = XInternAtom(disp, atom_name.c_str(), False);
@@ -232,10 +230,8 @@ SystemTray::~SystemTray() {
232 fluxbox->removeAtomHandler(m_handler.get()); 230 fluxbox->removeAtomHandler(m_handler.get());
233 Display *disp = fluxbox->display(); 231 Display *disp = fluxbox->display();
234 // setup atom name to _NET_SYSTEM_TRAY_S<screen number> 232 // setup atom name to _NET_SYSTEM_TRAY_S<screen number>
235 char intbuff[16];
236 sprintf(intbuff, "%d", m_window.screenNumber());
237 string atom_name("_NET_SYSTEM_TRAY_S"); 233 string atom_name("_NET_SYSTEM_TRAY_S");
238 atom_name += intbuff; // append number 234 atom_name += FbTk::StringUtil::number2String(m_window.screenNumber());
239 235
240 // get selection owner and see if it's free 236 // get selection owner and see if it's free
241 Atom tray_atom = XInternAtom(disp, atom_name.c_str(), False); 237 Atom tray_atom = XInternAtom(disp, atom_name.c_str(), False);