Discussion:
[Sguil-devel] Sguil client on OS X
Dave Crawford
2010-09-06 16:47:16 UTC
Permalink
I've created a patch for sguil.tk to enable proper mouse-click functionality on OS X, specifically "right" and "middle" button clicks. On OS X "Button-2" events are triggered with the right-mouse button and "Button-3" events with the middle (opposite of Windows) but the fix is relatively simple.

First I created two virtual events ( <<MouseRightPress>> and <<MouseMiddlePress>> ) and replaced all <ButtonPress-2> and <ButtonPress-3> bindings, respectively.

Upon start-up a check is made to see if you're running OS X and if so the <<MouseRightPress>> virtual event is assigned a sequence of <ButtonPress-2>, and <<MouseMiddlePress>> with <ButtonPress-3>, the opposite occurs if you're not on OS X.

Please let me know if you run into any issues!

Thanks,

-Dave

Loading...