MouseGestures and click events reaching apps, again

Hello, I asked this question a few days ago but haven't seen any replies. I am trying to setup a kiosk style app, with no keyboard. I understand that this is not how xmonad is typically used. Perhaps xmonad is not the right tool for my application but I thought I'd try it as it gets out of the way and is quite light and stable. I need to switch between windows/workspaces with a gesture on a touchscreen, and still interact with my apps through the touchscreen only. There will be no keyboard, For the most part I have succeeded, with the help of MouseGestures and CycleWS. The trouble is that clicks are no longer reaching the app (a browser for example). I have read through https://code.google.com/p/xmonad/issues/detail?id=225. I am using xmonad 0.11 and I have set clickJustFocuses to False, but this hasn't soved my problem. Here's my xmonad.hs file : https://gist.github.com/jefflasslett/5360705 Please let me know if using gist.github.com like this is a problem on the list. I want mouse click events (touch screen taps) that are not gestures to go down to the windowed app. How can I get this to happen? Thanks, Jeff Lasslett

Hi Jeff, I suspect you're not getting a response because it's not really an easy problem to fix in "user-space" (i.e. from within your config). I guess what's happening is that because you've added a mouse binding for left-mouse clicks (with no modifier), xmonad is grabbing all clicks. It then passes them on to whatever handler you have defined, and assumes that handler always knows how to do everything. That is, currently, xmonad core has no way for its mouse bindings to signal that they can't actually handle a particular mouse event. (The same is true of the key bindings.) Fixing this likely involves learning enough about X to know how to handle this correctly at the X level, then hacking on xmonad core to add the appropriate logic. There are likely to be people on-list who can give you some pointers to where to start with the X documentation, if that would be helpful. ~d On 2013-04-14 21:21, Jeff Lasslett wrote:
Hello,
I asked this question a few days ago but haven't seen any replies. I am trying to setup a kiosk style app, with no keyboard. I understand that this is not how xmonad is typically used. Perhaps xmonad is not the right tool for my application but I thought I'd try it as it gets out of the way and is quite light and stable.
I need to switch between windows/workspaces with a gesture on a touchscreen, and still interact with my apps through the touchscreen only. There will be no keyboard,
For the most part I have succeeded, with the help of MouseGestures and CycleWS.
The trouble is that clicks are no longer reaching the app (a browser for example). I have read through https://code.google.com/p/xmonad/issues/detail?id=225 [1]. I am using xmonad 0.11 and I have set clickJustFocuses to False, but this hasn't soved my problem.
Here's my xmonad.hs file : https://gist.github.com/jefflasslett/5360705 [2] Please let me know if using gist.github.com [3] like this is a problem on the list.
I want mouse click events (touch screen taps) that are not gestures to go down to the windowed app. How can I get this to happen?
Thanks,
Jeff Lasslett
Links: ------ [1] https://code.google.com/p/xmonad/issues/detail?id=225 [2] https://gist.github.com/jefflasslett/5360705 [3] http://gist.github.com
_______________________________________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/mailman/listinfo/xmonad

Thanks Daniel,
I have looked through the MouseGestures code and was starting to suspect
that I would need to modify xmonad core. Thanks for clarifying things for
me.
I'll start with a closer reading of the xmonad sources and see how far I
get. I will probably be asking on this list soon, for advice on how to
proceed. :-)
Jeff
On 16 April 2013 00:21, Daniel Wagner
Hi Jeff,
I suspect you're not getting a response because it's not really an easy problem to fix in "user-space" (i.e. from within your config). I guess what's happening is that because you've added a mouse binding for left-mouse clicks (with no modifier), xmonad is grabbing all clicks. It then passes them on to whatever handler you have defined, and assumes that handler always knows how to do everything.
That is, currently, xmonad core has no way for its mouse bindings to signal that they can't actually handle a particular mouse event. (The same is true of the key bindings.)
Fixing this likely involves learning enough about X to know how to handle this correctly at the X level, then hacking on xmonad core to add the appropriate logic. There are likely to be people on-list who can give you some pointers to where to start with the X documentation, if that would be helpful.
~d
On 2013-04-14 21:21, Jeff Lasslett wrote:
Hello,
I asked this question a few days ago but haven't seen any replies. I am trying to setup a kiosk style app, with no keyboard. I understand that this is not how xmonad is typically used. Perhaps xmonad is not the right tool for my application but I thought I'd try it as it gets out of the way and is quite light and stable.
I need to switch between windows/workspaces with a gesture on a touchscreen, and still interact with my apps through the touchscreen only. There will be no keyboard,
For the most part I have succeeded, with the help of MouseGestures and CycleWS.
The trouble is that clicks are no longer reaching the app (a browser for example). I have read through https://code.google.**com/p/xmonad/issues/detail?id=**225https://code.google.com/p/xmonad/issues/detail?id=225[1]. I
am using xmonad 0.11 and I have set clickJustFocuses to False, but this hasn't soved my problem.
Here's my xmonad.hs file : https://gist.github.com/** jefflasslett/5360705 https://gist.github.com/jefflasslett/5360705 [2] Please let me know if using gist.github.com [3] like this is a
problem on the list.
I want mouse click events (touch screen taps) that are not gestures to go down to the windowed app. How can I get this to happen?
Thanks,
Jeff Lasslett
Links: ------ [1] https://code.google.com/p/**xmonad/issues/detail?id=225https://code.google.com/p/xmonad/issues/detail?id=225 [2] https://gist.github.com/**jefflasslett/5360705https://gist.github.com/jefflasslett/5360705 [3] http://gist.github.com
______________________________**_________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/**mailman/listinfo/xmonadhttp://www.haskell.org/mailman/listinfo/xmonad
______________________________**_________________ xmonad mailing list xmonad@haskell.org http://www.haskell.org/**mailman/listinfo/xmonadhttp://www.haskell.org/mailman/listinfo/xmonad
participants (2)
-
Daniel Wagner
-
Jeff Lasslett