Skip to content

Commit 8ea6ed0

Browse files
necouchmanbk138
authored andcommitted
libvncclient: Maintain screen data when sending ExtendedDesktopSize
1 parent 4c15a85 commit 8ea6ed0

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/libvncclient/rfbclient.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,14 @@ SendExtDesktopSize(rfbClient* client, uint16_t width, uint16_t height)
17151715
sdm.width = rfbClientSwap16IfLE(width);
17161716
sdm.height = rfbClientSwap16IfLE(height);
17171717
sdm.numberOfScreens = 1;
1718+
1719+
/* Copy existing screen information to send with update. */
1720+
screen.id = client->screen.id;
1721+
screen.x = client->screen.x;
1722+
screen.y = client->screen.y;
1723+
screen.flags = client->screen.flags;
1724+
1725+
/* Get updated width and height for the resize. */
17181726
screen.width = rfbClientSwap16IfLE(width);
17191727
screen.height = rfbClientSwap16IfLE(height);
17201728

0 commit comments

Comments
 (0)