x2vnc is a program that lets you use two screens on two different computers as if they were connected to the same computer.
The overall result is that it works like a dual-display workstation, where the mouse pointer can pass from one screen to the other by trespassing a screen's edge.
But x2vnc is only for a X11 server. EDIT: But x2vnc is not compatible with macOS' screen sharing VNC server.
Is there any VNC client like this for macOS?
Or what's the closest I can get with existing VNC clients?