Binding a function to key+mousebutton
Frank Steiner <[email protected]>
| Newsgroups | gmane.comp.window-managers.ctwm |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'd like to have a certain command fired for a special combination of a modifier and a mouse button. But it works only on every second click. Just using the simple form Button1= c:window :f.exec "logger bla" will show "bla" in /var/log/messages when clicking the left mouse button + control key for the first time. But the second try will just show this little icon with the three mouse buttons (and left one clicked) as long as I keep the button pressed. It's the same icon that you see when clicking two mouse buttons at the same time on the root window. But that's only for the same combination of button and modifier. I.e. after clicking ctrl+left mouse button once, all other mouse buttons/actions will work as before. Just doing ctrl+left mouse button again will show that icon. The 3rd/5th/7th...ctrl+left mouse button click it will work again, the 4th/6th... will show the icon. Any idea what could be wrong here? Do I have to "terminate" the click somehow? The appearance of the icon seems to indicate that ctwm still considers the button clicked when the ctrl key is pressed. cu, Frank -- Dipl.-Inform. Frank Steiner Web: http://www.bio.ifi.lmu.de/~steiner/ Lehrstuhl f. Bioinformatik Mail: http://www.bio.ifi.lmu.de/~steiner/m/ LMU, Amalienstr. 17 Phone: +49 89 2180-4049 80333 Muenchen, Germany Fax: +49 89 2180-99-4049 * Rekursion kann man erst verstehen, wenn man Rekursion verstanden hat. *