[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mouseemu



I am using Debian testing on a PowerBook G4 667 MhZ (DVI).  So far, it's been going very nicely.

mouseemu 0.15-2 is installed, and I want to configure for the single-button touchpad similarly to Apple X11, so that alt/option + click is button 2, command + click is button 3, and to disable the scrollwheel.  I made the following /etc/defaults/mouseemu:

SCROLL="-scroll 0"              # disable?

MID_CLICK="-middle 56 272"      # alt/option+click
RIGHT_CLICK="-right 125 272"    # command+click

#TYPING_BLOCK="-typing-block 300" # block mouse for 300ms after a keypress

and then restarted the daemon.  This kind-of works, in that I am now getting button 2 and button 3 events sent, but the modifiers are getting sent too.  For example, xev tells me that Super_L is getting sent as well as button 3 (see below).

So "middle" and "right" clicks do the right thing for applications which ignore the modifiers.  But for applications which take notice of the modifiers, for example, xterm or emacs, things don't work right.  For example, "middle" clicking in xterm doesn't paste, because (I presume) it's seeing Alt_L + button 2, instead of only button 2.  I want my applications to see button 2 and button 3, without seeing the modifiers that were used to simulate them.

Does anybody have any ideas as to how I might be able to do this?

(Here's some sample output from xev:)


KeyPress event, serial 29, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 4072448, (165,172), root:(286,426),
    state 0x0, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

ButtonPress event, serial 32, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 4072714, (165,172), root:(286,426),
    state 0x8, button 2, same_screen YES

ButtonRelease event, serial 32, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 4072818, (165,172), root:(286,426),
    state 0x208, button 2, same_screen YES

KeyRelease event, serial 32, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 4073487, (165,172), root:(286,426),
    state 0x8, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
    XLookupString gives 0 bytes: 




KeyPress event, serial 32, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 3316918, (56,96), root:(778,308),
    state 0x0, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

ButtonPress event, serial 32, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 3317119, (56,96), root:(778,308),
    state 0x40, button 3, same_screen YES

ButtonRelease event, serial 32, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 3317231, (56,96), root:(778,308),
    state 0x440, button 3, same_screen YES

KeyRelease event, serial 32, synthetic NO, window 0x1400001,
    root 0x4c, subw 0x0, time 3317518, (56,96), root:(778,308),
    state 0x40, keycode 115 (keysym 0xffeb, Super_L), same_screen YES,
    XLookupString gives 0 bytes: 

-- 
http://www.fastmail.fm - Access your email from home and the web



Reply to: