diff options
author | Paul Eggleton <bluelightning@bluelightning.org> | 2010-04-04 21:44:01 +0100 |
---|---|---|
committer | Paul Eggleton <bluelightning@bluelightning.org> | 2010-04-04 21:44:01 +0100 |
commit | b78d3343acaa77109130ee48050942e7325a7319 (patch) | |
tree | 4f9448e55344c32b6dea09e31baa4ce2f7ccd989 /recipes/opie-taskbar/opie-taskbar | |
parent | 96f0c3857053e91feeb4ebbcdf3136553799abac (diff) | |
download | openembedded-b78d3343acaa77109130ee48050942e7325a7319.tar.gz |
opie-taskbar: force calibration on first start
Since we install default /etc/pointercal files that aren't perfect for
all devices, this patch forces Opie to do a screen calibration during
the first start wizard regardless of whether the pointercal file exists
or not.
Signed-off-by: Paul Eggleton <bluelightning@bluelightning.org>
Diffstat (limited to 'recipes/opie-taskbar/opie-taskbar')
-rw-r--r-- | recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch b/recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch new file mode 100644 index 0000000000..44d5d25659 --- /dev/null +++ b/recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch @@ -0,0 +1,20 @@ +diff --git a/core/launcher/firstuse.cpp b/core/launcher/firstuse.cpp +index 8c02ab0..cf731c2 100644 +--- launcher/firstuse.cpp ++++ launcher/firstuse.cpp +@@ -175,10 +175,13 @@ FirstUse::FirstUse(QWidget* parent, const char * name, WFlags wf) : + m_calHandler = ( QWSServer::mouseHandler() && QWSServer::mouseHandler()->inherits("QCalibratedMouseHandler") ) ? true : false; + + if ( m_calHandler) { +- if ( !QFile::exists("/etc/pointercal") ) { ++ // Since Angstrom is installing default pointer calibration files ++ // that don't match everyone's devices, we need to force calibration ++ // on first use. ++// if ( !QFile::exists("/etc/pointercal") ) { + needCalibrate = TRUE; + grabMouse(); +- } ++// } + } + + Config config("locale"); |