Skip to content

Commit

Permalink
fix for issue #72
Browse files Browse the repository at this point in the history
  • Loading branch information
bbidulock committed May 5, 2016
1 parent 2b0df4d commit 2686986
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/icetray.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class SysTray: public YWindow, public YXTrayNotifier {
void trayChanged();
private:
Atom icewm_internal_tray;
Atom manager;
Atom _NET_SYSTEM_TRAY_OPCODE;
YXTray *fTray2;
};
Expand Down Expand Up @@ -177,6 +178,8 @@ SysTray::SysTray(): YWindow(0) {
sprintf(trayatom2, "_ICEWM_INTTRAY_S%d", xapp->screen());
icewm_internal_tray =
XInternAtom(xapp->display(), trayatom2, False);
manager =
XInternAtom(xapp->display(), "MANAGER", False);

_NET_SYSTEM_TRAY_OPCODE =
XInternAtom(xapp->display(),
Expand Down Expand Up @@ -220,7 +223,7 @@ void SysTray::requestDock() {
}

bool SysTray::checkMessageEvent(const XClientMessageEvent &message) {
if (message.message_type == icewm_internal_tray) {
if (message.message_type == manager && (Atom) message.data.l[1] == icewm_internal_tray) {
MSG(("requestDock"));
requestDock();
}
Expand Down

0 comments on commit 2686986

Please sign in to comment.