summaryrefslogtreecommitdiff
path: root/src/Screen.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2009-10-01 06:57:31 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2009-10-01 06:57:31 (GMT)
commitc4c96ec830f7e22c5f5183886de1f399333f60cd (patch)
tree3ded4864f71f3f092697268ea879e73b8dc978e7 /src/Screen.cc
parent710ad1d4568239bbb1c19e82d764215b492d94db (diff)
downloadfluxbox_lack-c4c96ec830f7e22c5f5183886de1f399333f60cd.zip
fluxbox_lack-c4c96ec830f7e22c5f5183886de1f399333f60cd.tar.bz2
simpler code
Diffstat (limited to 'src/Screen.cc')
-rw-r--r--src/Screen.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Screen.cc b/src/Screen.cc
index 1581571..9e340f8 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1231,10 +1231,8 @@ bool BScreen::isKdeDockapp(Window client) const {
1231bool BScreen::addKdeDockapp(Window client) { 1231bool BScreen::addKdeDockapp(Window client) {
1232 1232
1233 XSelectInput(FbTk::App::instance()->display(), client, StructureNotifyMask); 1233 XSelectInput(FbTk::App::instance()->display(), client, StructureNotifyMask);
1234 char intbuff[16];
1235 sprintf(intbuff, "%d", screenNumber());
1236 string atom_name("_NET_SYSTEM_TRAY_S"); 1234 string atom_name("_NET_SYSTEM_TRAY_S");
1237 atom_name += intbuff; // append number 1235 atom_name += FbTk::StringUtil::number2String(screenNumber());
1238 // find the right atomhandler that has the name: _NET_SYSTEM_TRAY_S<num> 1236 // find the right atomhandler that has the name: _NET_SYSTEM_TRAY_S<num>
1239 AtomHandler *handler = Fluxbox::instance()->getAtomHandler(atom_name); 1237 AtomHandler *handler = Fluxbox::instance()->getAtomHandler(atom_name);
1240 FbTk::EventHandler *evh = 0; 1238 FbTk::EventHandler *evh = 0;