Skip to content

Commit 90a1eba

Browse files
authored
Merge pull request #95 from kedder/force-touch
Disable touch-screen auto-detection
2 parents 65ef916 + 96f5961 commit 90a1eba

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
From 9d515d154921e0c08337a50c8c616a327310d4c2 Mon Sep 17 00:00:00 2001
2+
From: Andrey Lebedev <andrey@lebedev.lt>
3+
Date: Sun, 5 Jul 2020 22:58:38 +0300
4+
Subject: [PATCH] Disable touch-screen auto-detection
5+
6+
When touch screen is detected, XCSoar renders larger buttons and other
7+
screen controls. Larger control size is more preferrable for Openvario
8+
even on machines with no touch screen is installed: it is easier to
9+
click larger controls with the stick control and labels acually fit the
10+
buttons with the larger font sizes.
11+
---
12+
src/Event/Poll/LibInput/LibInputHandler.hpp | 2 +-
13+
1 file changed, 1 insertion(+), 1 deletion(-)
14+
15+
diff --git a/src/Event/Poll/LibInput/LibInputHandler.hpp b/src/Event/Poll/LibInput/LibInputHandler.hpp
16+
index 0ca1d8f512..b9eeb3e724 100644
17+
--- a/src/Event/Poll/LibInput/LibInputHandler.hpp
18+
+++ b/src/Event/Poll/LibInput/LibInputHandler.hpp
19+
@@ -53,7 +53,7 @@ class LibInputHandler final {
20+
/**
21+
* The number of pointer input devices, touch screens ans keyboards.
22+
*/
23+
- unsigned n_pointers = 0, n_touch_screens = 0, n_keyboards = 0;
24+
+ unsigned n_pointers = 0, n_touch_screens = 1, n_keyboards = 0;
25+
26+
public:
27+
explicit LibInputHandler(boost::asio::io_context &io_context,
28+
--
29+
2.25.1
30+

recipes-apps/xcsoar/xcsoar-testing_git.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ SRC_URI = " \
5050
file://0001-Disable-warnings-as-errors.patch \
5151
file://0001_no_version_lua.patch \
5252
file://0001-avoid-tail-cut.patch \
53+
file://0007-Disable-touch-screen-auto-detection.patch \
5354
file://ov-xcsoar.conf \
5455
"
5556

recipes-apps/xcsoar/xcsoar_6.8.15.bb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ SRC_URI = " \
4747
file://0001-Disable-warnings-as-errors.patch \
4848
file://0001-avoid-tail-cut.patch \
4949
file://0006-Include-header-containing-errno-for-6.8.patch \
50+
file://0007-Disable-touch-screen-auto-detection.patch \
5051
file://ov-xcsoar.conf \
5152
"
5253

0 commit comments

Comments
 (0)