OnDesktop is documented as "The mouse cursor is over the desktop (root window), and not any window.", however, using something like "OnDesktop F9 :ExecCommand xrefresh" will get triggered no matter where the mouse is (e.g. even on a window).
if the window/app the mouse is currently over is not taking care of the event, the next window (most likely the RootWIndow) is handling it (the eventhandler associated with the window the event occurs on).
if your app would handle F9, your binding would not trigger on a window.
that said: i am not sure if this is a bug or a feature :)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i dont see any other way to get informed about a pressed key / button.
"the event is always handled by fluxbox, never by any window." .. if it's not handled by fluxbox, it will be passed on to the next registered eventhandler .. the one the application registered.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if the window/app the mouse is currently over is not taking care of the event, the next window (most likely the RootWIndow) is handling it (the eventhandler associated with the window the event occurs on).
if your app would handle F9, your binding would not trigger on a window.
that said: i am not sure if this is a bug or a feature :)
Herein lies the problem.. the event is always handled by fluxbox, never by any window.
(I'd forgotten, I ran into this months ago when I submitted the fix for StrictMouseFocus)
thats how things work.
http://git.fluxbox.org/fluxbox.git/tree/src/Screen.cc#n306
http://git.fluxbox.org/fluxbox.git/tree/src/Keys.cc#n599
http://git.fluxbox.org/fluxbox.git/tree/src/Keys.cc#n253
http://git.fluxbox.org/fluxbox.git/tree/src/FbTk/KeyUtil.cc#n123
i dont see any other way to get informed about a pressed key / button.
"the event is always handled by fluxbox, never by any window." .. if it's not handled by fluxbox, it will be passed on to the next registered eventhandler .. the one the application registered.
Risky patch to handle this as expected, needs testing. Really. A lot.
https://github.com/luebking/fluxbox/commit/a02a29457470c910cc6acf0a65a848d10e130e0b
https://github.com/fluxbox/fluxbox/commit/1e235e3f01733e3282a76e6be8862206d1504bdf