mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-13 04:42:30 +00:00
Don't try to re-configure displays when there are none
virt_viewer_session_on_monitor_geometry_changed() gets called immediately upon agent connection, but sometimes this is before any displays have been received. Simply return early when this is the case.
This commit is contained in:
parent
8fa5e004ec
commit
f0d662994f
@ -362,6 +362,9 @@ virt_viewer_session_on_monitor_geometry_changed(VirtViewerSession* self,
|
||||
nmonitors = MAX(nth + 1, nmonitors);
|
||||
}
|
||||
|
||||
if (nmonitors == 0)
|
||||
return;
|
||||
|
||||
monitors = g_new0(GdkRectangle, nmonitors);
|
||||
for (l = self->priv->displays; l; l = l->next) {
|
||||
VirtViewerDisplay *d = VIRT_VIEWER_DISPLAY(l->data);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user