Skip to content

Commit

Permalink
Merge pull request #95 from kedder/force-touch
Browse files Browse the repository at this point in the history
Disable touch-screen auto-detection
  • Loading branch information
linuxianer99 authored Jul 7, 2020
2 parents 65ef916 + 96f5961 commit 90a1eba
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
From 9d515d154921e0c08337a50c8c616a327310d4c2 Mon Sep 17 00:00:00 2001
From: Andrey Lebedev <[email protected]>
Date: Sun, 5 Jul 2020 22:58:38 +0300
Subject: [PATCH] Disable touch-screen auto-detection

When touch screen is detected, XCSoar renders larger buttons and other
screen controls. Larger control size is more preferrable for Openvario
even on machines with no touch screen is installed: it is easier to
click larger controls with the stick control and labels acually fit the
buttons with the larger font sizes.
---
src/Event/Poll/LibInput/LibInputHandler.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Event/Poll/LibInput/LibInputHandler.hpp b/src/Event/Poll/LibInput/LibInputHandler.hpp
index 0ca1d8f512..b9eeb3e724 100644
--- a/src/Event/Poll/LibInput/LibInputHandler.hpp
+++ b/src/Event/Poll/LibInput/LibInputHandler.hpp
@@ -53,7 +53,7 @@ class LibInputHandler final {
/**
* The number of pointer input devices, touch screens ans keyboards.
*/
- unsigned n_pointers = 0, n_touch_screens = 0, n_keyboards = 0;
+ unsigned n_pointers = 0, n_touch_screens = 1, n_keyboards = 0;

public:
explicit LibInputHandler(boost::asio::io_context &io_context,
--
2.25.1

1 change: 1 addition & 0 deletions recipes-apps/xcsoar/xcsoar-testing_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ SRC_URI = " \
file://0001-Disable-warnings-as-errors.patch \
file://0001_no_version_lua.patch \
file://0001-avoid-tail-cut.patch \
file://0007-Disable-touch-screen-auto-detection.patch \
file://ov-xcsoar.conf \
"

Expand Down
1 change: 1 addition & 0 deletions recipes-apps/xcsoar/xcsoar_6.8.15.bb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ SRC_URI = " \
file://0001-Disable-warnings-as-errors.patch \
file://0001-avoid-tail-cut.patch \
file://0006-Include-header-containing-errno-for-6.8.patch \
file://0007-Disable-touch-screen-auto-detection.patch \
file://ov-xcsoar.conf \
"

Expand Down

0 comments on commit 90a1eba

Please sign in to comment.