Skip to content

Commit bd18eb3

Browse files
Add EmulateMiddleButton and DotWhenNoCursor for fix missing mouse when controlling Windows from Linux
1 parent 10de4df commit bd18eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ ipcMain.on('run-client', (event, data) => {
191191
}
192192
// PasswordFile of TigerVNC viewer cannot be passed on commandline, so use the file next to the binary.
193193
let dirname = nodePath.dirname(foundBinary);
194-
clientChild = runProcess(foundBinary, ['SecurityTypes=VncAuth','PasswordFile='+dirname+nodePath.sep+'plain.bin','127.0.0.1::45900']);
194+
clientChild = runProcess(foundBinary, ['SecurityTypes=VncAuth','EmulateMiddleButton=1','DotWhenNoCursor=1','PasswordFile='+dirname+nodePath.sep+'plain.bin','127.0.0.1::45900']);
195195
} else if (process.platform === 'win32') {
196196
clientChild = findAndRunProcess('uvnc-windows\\x64\\vncviewer.exe', ['/password','nopassword','localhost:45900']);
197197
}

0 commit comments

Comments
 (0)