diff options
author | fluxgen <fluxgen> | 2003-08-27 00:11:24 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-27 00:11:24 (GMT) |
commit | 720da3cc5664316357107318b6a838034223aa40 (patch) | |
tree | c25d3961c9cd4f97ac126190e1a483d97f243acc /src/SystemTray.cc | |
parent | 38e8bdd4b734c09b2fff174d289702496b7b7602 (diff) | |
download | fluxbox_pavel-720da3cc5664316357107318b6a838034223aa40.zip fluxbox_pavel-720da3cc5664316357107318b6a838034223aa40.tar.bz2 |
minor fixes
Diffstat (limited to 'src/SystemTray.cc')
-rw-r--r-- | src/SystemTray.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/SystemTray.cc b/src/SystemTray.cc index a90abd3..e282a76 100644 --- a/src/SystemTray.cc +++ b/src/SystemTray.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: SystemTray.cc,v 1.2 2003/08/16 12:12:21 fluxgen Exp $ | 22 | // $Id: SystemTray.cc,v 1.3 2003/08/27 00:11:24 fluxgen Exp $ |
23 | 23 | ||
24 | #include "SystemTray.hh" | 24 | #include "SystemTray.hh" |
25 | 25 | ||
@@ -168,25 +168,22 @@ unsigned int SystemTray::borderWidth() const { | |||
168 | 168 | ||
169 | bool SystemTray::clientMessage(const XClientMessageEvent &event) { | 169 | bool SystemTray::clientMessage(const XClientMessageEvent &event) { |
170 | static const int SYSTEM_TRAY_REQUEST_DOCK = 0; | 170 | static const int SYSTEM_TRAY_REQUEST_DOCK = 0; |
171 | static const int SYSTEM_TRAY_BEGIN_MESSAGE = 1; | 171 | // static const int SYSTEM_TRAY_BEGIN_MESSAGE = 1; |
172 | static const int SYSTEM_TRAY_CANCEL_MESSAGE = 2; | 172 | // static const int SYSTEM_TRAY_CANCEL_MESSAGE = 2; |
173 | 173 | ||
174 | if (event.message_type == | 174 | if (event.message_type == |
175 | XInternAtom(FbTk::App::instance()->display(), "_NET_SYSTEM_TRAY_OPCODE", False)) { | 175 | XInternAtom(FbTk::App::instance()->display(), "_NET_SYSTEM_TRAY_OPCODE", False)) { |
176 | 176 | ||
177 | int type = event.data.l[1]; | 177 | int type = event.data.l[1]; |
178 | if (type == SYSTEM_TRAY_REQUEST_DOCK) { | 178 | if (type == SYSTEM_TRAY_REQUEST_DOCK) { |
179 | #ifdef DEBUG | ||
180 | cerr<<__FILE__<<": REQUEST DOCK"<<endl; | ||
181 | #endif // DEBUG | ||
182 | addClient(event.data.l[2]); | 179 | addClient(event.data.l[2]); |
183 | } | 180 | } |
184 | #ifdef DEBUG | 181 | /* |
185 | else if (type == SYSTEM_TRAY_BEGIN_MESSAGE) | 182 | else if (type == SYSTEM_TRAY_BEGIN_MESSAGE) |
186 | cerr<<"BEGIN MESSAGE"<<endl; | 183 | cerr<<"BEGIN MESSAGE"<<endl; |
187 | else if (type == SYSTEM_TRAY_CANCEL_MESSAGE) | 184 | else if (type == SYSTEM_TRAY_CANCEL_MESSAGE) |
188 | cerr<<"CANCEL MESSAGE"<<endl; | 185 | cerr<<"CANCEL MESSAGE"<<endl; |
189 | #endif // DEBUG | 186 | */ |
190 | 187 | ||
191 | return true; | 188 | return true; |
192 | } | 189 | } |