opie-taskbar: force calibration on first start
authorPaul Eggleton <bluelightning@bluelightning.org>
Sun, 4 Apr 2010 20:44:01 +0000 (21:44 +0100)
committerPaul Eggleton <bluelightning@bluelightning.org>
Sun, 4 Apr 2010 20:44:01 +0000 (21:44 +0100)
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>
recipes/opie-taskbar/opie-taskbar/force-firstuse-calibrate.patch [new file with mode: 0644]
recipes/opie-taskbar/opie-taskbar_1.2.4.bb

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 (file)
index 0000000..44d5d25
--- /dev/null
@@ -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");
index b566045..a9df7c9 100644 (file)
@@ -1,5 +1,5 @@
 require ${PN}.inc
-PR = "r3"
+PR = "r4"
 
 SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/apps/calibrate \
            ${HANDHELDS_CVS};tag=${TAG};module=opie/noncore/settings/mediummount \
@@ -14,4 +14,5 @@ SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/core/apps/calibrate \
           file://restart-from-bindir.patch;patch=1 \
            file://server-pro-1.2.4.patch;patch=1 \
           file://firstuse-path.patch;patch=1 \
+           file://force-firstuse-calibrate.patch;patch=1 \
           "