-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hi,
Am Do den 21. Mär 2019 um 21:53 schrieb Jaimos Skriletz: > On Thu, Mar 21, 2019 at 2:40 PM Klaus Ethgen <klaus+f...@ethgen.ch> wrote: > > - From the documentation, the following mapping: > > Key Up A M Scroll +0 -10 > > Key (mpv) Up A M - > > > > Should bind alt-Up to the Scroll except in mpv window. But it also > > scrolls in mpv windown. > > > > In the second command 'Key (mpv) Up A M -', the - removes the > keybinding. Since there is no specific key binding for mpv it uses > your global keybinding. From the documentation: Ok, that sounds reasonable. > > So I tried `Key (mpv) Up A M Echo Up` which worked and echos the Up. > > Yes this will work, because now you have a window specific binding > that fvwm uses. But why dows it work when I do `Key (mpv) Up A M -` direct afterwards (but not in the config file)? > > - - How to do a mapping for everything except in mpv window? > > - - What is the difference between `-` and `--` in this context? > > From the man page: > > A '--' action indicates that the event should be propagated to > the specified window to handle. This is only a valid action for > window-specific bindings. > > So in conclusion, when using window specific bindings and you want to > propagate the press to the window you want to use '--', not '-' (which > tells fvwm to remove the binding). > > Thus I think you should be able to get this to work if you change your > bindings to > > Key Up A M Scroll +0 -10 > Key (mpv) Up A M -- I tried that too but it does not work. Yes, I read about the application to accept the pass through. But with exact that setting, it does scroll inside the window too; so I don't think that any event for the application is generated at all. Regards Klaus - -- Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <kl...@ethgen.ch> Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C -----BEGIN PGP SIGNATURE----- Comment: Charset: ISO-8859-1 iQGzBAEBCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAlyUACkACgkQpnwKsYAZ 9qwK6wv/bkVILcJg1nNgJcglI+hGHQRfqzWkq58psuUayCwtA3UpVkj6jz/ncxIi ey8fOhX/bL+cHEnKy5YucrBpkOHcPlAK+7+f0wWBCoYyJI60IsXv9O+6K7JxMZxQ IO2RXUPHVgBMz3EG/vDBodCuAChXJ3INeDV+H46I2qzwJtle+1Ekj290FXACo+uO wdtfTGQO7UgRTe72Zdif6d34UntU5zSKzVuRq64EHraN9t7hyVRC5o4pZ/etcpC0 jLnjBV4aEALsXJ7WeMbZWUaY66EfgYaUxvJYPTwk++DtjzUOdsJvnrbF9OHPCF2L r5x6jYjMrjfTQJQV8VXk+N15CddvP/5xOP1Wz84ysYf8OWR0WgSK5kgDdK8yrRsT ZMeTaotiZgCIpdnKUkn9RWcwsGrlB2FHaP3+NmPwm27iYyapdQenwLbXDzXKaaKQ S+9hDpVyL+WA+Ofw5SEepdPsjSoMCJImsFewUVwCjHBuoaDkmSnM+BR1/VRsOS/b 9RH6Plo2 =9Lv0 -----END PGP SIGNATURE-----