Package: brltty / 5.2~20141018-5

git-a7123d7 Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
commit a7123d720e97eaa1185f4bb3739e670b9b0bbffb
Author: Dave Mielke <dave@mielke.cc>
Date:   Sun Oct 26 10:21:15 2014 -0400

    The currentVirtualTerminal() method of the null screen driver should return -1 (always has focus). (dm)

diff --git a/Programs/scr_driver.c b/Programs/scr_driver.c
index 889becd..767977c 100644
--- a/Programs/scr_driver.c
+++ b/Programs/scr_driver.c
@@ -52,13 +52,18 @@ processParameters_NoScreen (char **parameters) {
   return 1;
 }
 
+static int
+currentVirtualTerminal_NoScreen (void) {
+  return -1;
+}
+
 static void
 describe_NoScreen (ScreenDescription *description) {
   description->rows = 1;
   description->cols = strlen(screenMessage);
   description->posx = 0;
   description->posy = 0;
-  description->number = 1;
+  description->number = currentVirtualTerminal_NoScreen();
 }
 
 static int
@@ -82,6 +87,7 @@ scr_initialize (MainScreen *main) {
   main->base.poll = poll_NoScreen;
   main->base.describe = describe_NoScreen;
   main->base.readCharacters = readCharacters_NoScreen;
+  main->base.currentVirtualTerminal = currentVirtualTerminal_NoScreen;
 
   main->processParameters = processParameters_NoScreen;
 }