LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.07k stars 481 forks source link

libvncclient: update screen validation logic ,because screen.id may equal 0 #620

Open x-7 opened 3 weeks ago

x-7 commented 3 weeks ago

This pull request modifies the screen validation logic in the libvncclient library when handling the ExtendedDesktopSize message. The previous implementation checked if screen.id was not equal to 0, along with validating screen.width and screen.height. However, this caused issues with certain VNC server implementations, such as TigerVNC, which may return a screen.id of 0.which will cause the resize not to work correctly