View Single Post
Old 10-11-2013, 07:03 PM   #28
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I think with a bit of extra love...
This could be useful.

There are still situations where a program could open a window that is STUPIDLY large (QT ABOUT I'm looking at you)

so... to remedy this I propose a sentinel process that monitors the logs for double tap (or maybe pinching..) that IDEALLY would fire up a dialog requesting the the users permission to close out the application (failsafe)

however... In the absence of such a process...

The following bit of code could at least provide a monitor to "close out" (I.e. exit) badly behaving apps...
Code:
echo "" > /var/log/messages; \
showlog -f  | awk '$0 ~ /.*GestureEngine*./ {print $6,$7}'
TAP then release gives
1 down
1 up


Two finger tap then release gives
2 down
2 up


Various double finger pinch/zoom swipes:

9 down
9 up
7 up
7 down
8 down
8 up


So I will look to create a sentinel process that kills off the last registered (or perhaps ACTIVE WINDOW) for these worst case scenarios)

Other than that - very happy now

of course this does mean that apps that EXPECT pinch will be affected but unless someone has a better idea... This is what I have.

Last edited by twobob; 10-11-2013 at 07:06 PM.
twobob is offline   Reply With Quote