Button 9 doesn't work. How about 6 - 8?
- From: Teika Kazura <teika lavabit com>
- To: sawfish-list gnome org
- Subject: Button 9 doesn't work. How about 6 - 8?
- Date: Tue, 15 Jun 2010 11:32:07 +0900 (JST)
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
file.
I was shocked by the button 9 bug. It has been there since 2004.
Theory:
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">
<device>
<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"
string="Linux">
<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>
</match>
</match>
</device>
</deviceinfo>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]