]> source.dussan.org Git - tigervnc.git/commit
Capture all displays inside the viewport (macOS)
authorHugo Lundin <hugo@lundin.dev>
Tue, 13 Jul 2021 11:07:41 +0000 (13:07 +0200)
committerHugo Lundin <hugo@lundin.dev>
Fri, 16 Jul 2021 07:44:59 +0000 (09:44 +0200)
commit2289342de7222e4ff2483eae95bb9898830e6097
treefbbbd030aefa4e383a6184c2d8f40418304f48db
parentdfc9421dcf0fc97ad99638df501b95cb162e95b2
Capture all displays inside the viewport (macOS)

It was only possible to capture either the current, or all displays
previously. This could become an issue if you want to show a vnc session
over only a selected set of displays, because then we only want to
capture those displays.

The solution in the commit was chosen because it handles all cases - by
looking at what monitors are enclosed by the viewport the implementation
is independent on any configuration, but instead captures the monitors
actually being used.
vncviewer/DesktopWindow.cxx
vncviewer/cocoa.h
vncviewer/cocoa.mm