I´m sorry, I was unclear.
The file you should edit is the one I have already linked in this thread.
the *value* to put into the file is up to you to find out because it depends on your hardware piece.
Let me try to explain it again.
You hardware must be calibrated, because each hardware is unique.
You calibrate it using the calibration app.
But sometimes the base values is so far from real that even the calibration app can actually calibrate your panel. So you need to add *by hand* some guessing numbers. The example for this is in the link I have already sent to you.
However, I don't know if your problem is the calibration, because the very first question you made is regarding not closing the windows. I guessed it *may* be the calibration, but I cannot be sure.
Kernel is not, because you have already tested evtest and kernel is returning events.
So, if this is a calibration error, maybe you can get better help from the calibration app community
If this is really a QT error (are you using QT?) maybe you should contact QT community.
You asked for advises, I tried to help the in my best way. I'm sorry if this was not enough. The way I made the file I sent you the link, worked for me. It was a long time ago (2013-03-30) how you can see in meta-fsl-arm - Layer containing Freescale ARM hardware support metadata