touchscreen: check for correct s2w enablement

S2W handling should only be done if the correct
flag is enabled

Change-Id: I3ecd0b24ca039c0127be15f24ca300e9f9ba62cc
Merge "touchscreen: check for correct s2w enablement" into android-4.3