GTK+ bug. Arnavion was kind enough to track it down and even file a bug report about it:
I have this patch: https://raw.github.com/Arnavion/gtk-win32/master/gtk/gtk-statusicon.patch https://raw.github.com/hexchat/gtk-win32/master/gtk/gtk-statusicon.patch
There is a glitch that I see with this patch in the following configurations:
and not on the following configurations:
(All using VS2012. All other configurations untested)
Mousing over the entries in the tray's context menu doesn't highlight them. Clicking on them still works. I'm still investigating why. Need @bviktor or @eustachy to tell me if this happens using VS2010 and this patch.
Win7x64 + Hexchat x86 (build using vs2010) + gtk-statusicon.patch for gtk (build with vs2010):
Highligthing items in tray works (other stuff works too) and i was unable to crash it :P
After some more testing I encountered this thing, it happens on start with x64 build. I can't reproduce it as right now my hexchat works. I uploaded it as new 2.9.6 test so maybe someone will get it too :P
I can verify that it works the way you explained with VS2012. Seems to be fine with x64 builds, on x86 no highlighting but working click.
gtk: Added status icon patch.
Since the crash is resolved, I've opened a new issue for the mouse highlighting bug.