-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from kedder/force-touch
Disable touch-screen auto-detection
- Loading branch information
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
recipes-apps/xcsoar/files/0007-Disable-touch-screen-auto-detection.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters