Comments
-
Greg Hurrell
This is a known bug in Apple's NSStatusItem API, which Synergy uses. Basically what happens is Synergy receives the click, but for some reason the system *also* passes the "below" to the SystemUIServer as well. Then when you move the mouse over the NSMenuExtras they pop down because as far as they are concerned you've clicked in the menu bar.
The next time you click on Synergy, Mac OS X passes *another* click to the SystemUIServer and this means that when you move the mouse over the NSMenuExtras the menus will no longer pop down because they think you've clicked in the menu bar again. Clicking elsewhere on the screen (even outside of Synergy) will have the same effect (it breaks out of the "menu down" state); this is just like when you click once on a menu extra (the menu pops down) and then you click elsewhere on the screen (and the menu pops up).
I am convinced that this is an Apple bug, but I am marking this as ASSIGNED. I have considered a number of tricky workarounds to suppress the behaviour of the bug, but I don't particularly like any of them. One that I am thinking of is the following: for each click on a Synergy button, generate *another* mouse click event at the same location, ignore that event (ie. Synergy only responds to the first event, the real one, not the generated one) and let it fall through to the system; in this way the SystemUIServer will "see" two clicks, thus causing it to toggle state twice ie. go back to its original state.
I am not sure if this hack will work, and it strikes me as very elegant, so I am hoping Apple will fix the bug in their NSStatusItem/SystemUIServer implementation.
-
Greg Hurrell
Correction: in my comment above I meant to say, "it strikes me as very inelegant"!
-
Greg Hurrell
Changing assignment to reflect my new email address.
https://wincent.dev/a/news/archives/2006/05/change_of_email.php
-
Greg Hurrell
As this is an issue that only Apple can fix, I am going to close this issue. I encourage anyone interested in getting the behavior in Mac OS X changed to submit feedback to Apple here.
-
Greg Hurrell
Status changed:
- From: new
- To: closed
Add a comment
Comments are now closed for this issue.