summaryrefslogtreecommitdiffstats
path: root/x11vnc/screen.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-09 01:48:31 +0000
committerrunge <runge>2006-07-09 01:48:31 +0000
commit079528470d8a1dfeab321ebdc2ab6c42943ed296 (patch)
treeaaa83a4d318c1c72a7698c3b8a6b5318397688d3 /x11vnc/screen.c
parent8cda60969b6d2df88e0f4fc0fd267dc26adb3872 (diff)
downloadlibtdevnc-079528470d8a1dfeab321ebdc2ab6c42943ed296.tar.gz
libtdevnc-079528470d8a1dfeab321ebdc2ab6c42943ed296.zip
x11vnc: add uinput support for full input into linux fb device (e.g. qt-embed).
Diffstat (limited to 'x11vnc/screen.c')
-rw-r--r--x11vnc/screen.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/x11vnc/screen.c b/x11vnc/screen.c
index a309c5c..876cef4 100644
--- a/x11vnc/screen.c
+++ b/x11vnc/screen.c
@@ -574,10 +574,12 @@ void set_raw_fb_params(int restore) {
}
} else {
/* Normal case: */
- if (! view_only) {
+#if 0
+ if (! view_only && ! pipeinput_str) {
if (! quiet) rfbLog(" rawfb: setting view_only\n");
view_only = 1;
}
+#endif
if (watch_selection) {
if (! quiet) rfbLog(" rawfb: turning off "
"watch_selection\n");
@@ -609,10 +611,6 @@ void set_raw_fb_params(int restore) {
}
multiple_cursors_mode = strdup("arrow");
}
- if (0 && use_snapfb) {
- if (! quiet) rfbLog(" rawfb: turning off use_snapfb\n");
- use_snapfb = 0;
- }
if (using_shm) {
if (! quiet) rfbLog(" rawfb: turning off using_shm\n");
using_shm = 0;
@@ -963,7 +961,8 @@ if (db) fprintf(stderr, "initialize_raw_fb reset\n");
rawfb_dev_video = 1;
} else if (strstr(str, "dev/video")) {
rawfb_dev_video = 1;
- } else if (strstr(str, "cons") == str || strstr(str, "/dev/fb") == str) {
+ } else if (strstr(str, "cons") == str || strstr(str, "fb") == str ||
+ strstr(str, "/dev/fb") == str) {
char *str2 = console_guess(str, &raw_fb_fd);
if (str2 == NULL) {
rfbLog("console_guess failed for: %s\n", str);