gpe-session-scripts: turn on cursor hiding based on the touchscreen machine feature
authorKoen Kooi <koen@openembedded.org>
Sun, 17 Jun 2007 07:05:26 +0000 (07:05 +0000)
committerKoen Kooi <koen@openembedded.org>
Sun, 17 Jun 2007 07:05:26 +0000 (07:05 +0000)
packages/gpe-session-scripts/files/angstrom/matchbox-session
packages/gpe-session-scripts/files/matchbox-session
packages/gpe-session-scripts/gpe-session-scripts_0.67.bb

index ad2d9b6..b0bec8c 100644 (file)
@@ -5,5 +5,4 @@ XRES=`xdpyinfo | awk '/dimensions/ { print $2 }' | cut -dx -f1`
   matchbox-desktop &
 
 matchbox-panel --no-flip  --orientation south &
-exec matchbox-window-manager $@
 
index bffd69a..e4c0e0c 100644 (file)
@@ -5,5 +5,4 @@ XRES=`xdpyinfo | awk '/dimensions/ { print $2 }' | cut -dx -f1`
   matchbox-desktop &
 
 MB_MENU_PANEL_DISABLED=1 matchbox-panel  --orientation south &
-exec matchbox-window-manager $@
 
index 2c17d99..75b79ec 100644 (file)
@@ -11,7 +11,7 @@ DEPENDS = "matchbox-wm matchbox-panel xtscal gpe-question matchbox-applet-inputm
 SRC_URI += "file://matchbox-session \
        file://disable-composite.xsettings"
 
-PR = "r9"
+PR = "r10"
 
 #apply a patch to set the fontsize for bigdpi (200+) devices to 5
 SRC_URI_append_hx4700 = " file://highdpifontfix.patch;patch=1"
@@ -26,6 +26,8 @@ do_configure_append_angstrom() {
        sed -i s:Industrial:Clearlooks:g X11/xsettings.default
 }
 
+export CURSOR_HIDE = '${@base_contains("MACHINE_FEATURES","touchscreen","-use_cursor no","-use_cursor yes",d)}'
+
 do_install_append() {
        install -d ${D}${sysconfdir}/gpe/xsettings-default.d
        if [ "${GUI_MACHINE_CLASS}" != "bigscreen" ]; then
@@ -33,6 +35,8 @@ do_install_append() {
        fi
        install -d ${D}${sysconfdir}/matchbox
        install ${WORKDIR}/matchbox-session ${D}${sysconfdir}/matchbox/session
+        echo -e "exec matchbox-window-manager ${CURSOR_HIDE} \$@ \n" >> ${D}${sysconfdir}/matchbox/session     
+
 
        install -d ${D}${sysconfdir}/gpe/xsettings-default.d
        install -m 0644 ${WORKDIR}/disable-composite.xsettings ${D}${sysconfdir}/gpe/xsettings-default.d/disable-composite