wok-6.x rev 19010

busybox/fbvnc: wheelmouse support (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 28 18:51:16 2016 +0200 (2016-03-28)
parents 5ee246cee8a9
children 1513e66c7557
files busybox/stuff/busybox-1.23-diff.u busybox/stuff/busybox-1.23-fbvnc.u
line diff
     1.1 --- a/busybox/stuff/busybox-1.23-diff.u	Mon Mar 28 18:28:53 2016 +0200
     1.2 +++ b/busybox/stuff/busybox-1.23-diff.u	Mon Mar 28 18:51:16 2016 +0200
     1.3 @@ -31,7 +31,7 @@
     1.4   			i = MIN(i, j);
     1.5   		}
     1.6   		if (i == 0)
     1.7 -@@ -877,7 +887,9 @@
     1.8 +@@ -879,7 +879,9 @@
     1.9   		 * Using list.len to specify its length,
    1.10   		 * add_to_dirlist will remove it. */
    1.11   		list[i].len = strlen(p[i]);
    1.12 @@ -42,7 +42,7 @@
    1.13   				add_to_dirlist, skip_dir, &list[i], 0);
    1.14   		/* Sort dl alphabetically.
    1.15   		 * GNU diff does this ignoring any number of trailing dots.
    1.16 -@@ -991,7 +1003,7 @@
    1.17 +@@ -993,7 +995,7 @@
    1.18   #if ENABLE_FEATURE_DIFF_LONG_OPTIONS
    1.19   	applet_long_options = diff_longopts;
    1.20   #endif
     2.1 --- a/busybox/stuff/busybox-1.23-fbvnc.u	Mon Mar 28 18:28:53 2016 +0200
     2.2 +++ b/busybox/stuff/busybox-1.23-fbvnc.u	Mon Mar 28 18:51:16 2016 +0200
     2.3 @@ -538,7 +538,7 @@
     2.4  +	vnc_init();
     2.5  +	G.rat_fd = open("/dev/input/mice", O_RDWR);
     2.6  +	write(G.rat_fd, "\xf3\xc8\xf3\x64\xf3\x50", 6);	/* for using mouse wheel */
     2.7 -+	read(G.rat_fd, buf, 1);
     2.8 ++	read(G.rat_fd, line_buffer, 1);
     2.9  +	term_setup();
    2.10  +	atexit(cleanup);
    2.11  +	bb_signals(BB_FATAL_SIGS, killed);