Button 9 doesn't work. How about 6 - 8?

Hi, you can't bind a command to button9, right?

How about 6-8? In my environment, click and release work, like this:
(bind-keys window-keymap "Button8-Off" 'maximize-window-toggle)

Janek says button-8-dragging works, but doesn't for me:
(bind-keys window-keymap "Button7-Move" 'move-window-interactively)

How about in your environment? In my case, the 'state' field of xev is
silent for 6 - 9, but emacs says "drag-mouse-7 is undefined", so emacs
can see the drag. If a Sawfish command is bound, then the event is
not passed to clients.

You can test it even if you have only a 2-button or 3- mouse, you can
assign these button numbers. I've attached a sample hal configuration

I was shocked by the button 9 bug. It has been there since 2004.

Button9Mask = 1 << 16 
 = EV_TYPE_KEY = 0x10000; in src/keys.h

I've spent 40 minutes to find it. ;(

:o :O :○ Bang!
Teika (Teika kazura)

<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
    <match key="info.capabilities" contains="input.mouse">
      <merge key="input.x11_driver" type="string">mouse</merge>
      <match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
        <merge key="input.x11_driver" type="string">evdev</merge>
	<!-- Right button is assigned the button #8. -->
        <merge key="input.x11_options.ButtonMapping" type="string">1 2 8</merge>

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