mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2025-12-29 08:42:19 +00:00
Set initial window size to display desktop size
When setting the 'display' for a VirtViewerWindow, the initial size for that window should be the size of the remote display. So we synthesize a desktop resize event when setting a new display for a window. This is only done for enabled displays. Disabled displays generally have a size of 0x0, which would result in the window being at it's minimum size, so just allow the window to use its default size.
This commit is contained in:
parent
f03285ba8d
commit
29c8cadd40
@ -1319,6 +1319,8 @@ virt_viewer_window_set_display(VirtViewerWindow *self, VirtViewerDisplay *displa
|
||||
G_CALLBACK(virt_viewer_window_desktop_resize), self, 0);
|
||||
virt_viewer_signal_connect_object(display, "notify::show-hint",
|
||||
G_CALLBACK(display_show_hint), self, 0);
|
||||
if (virt_viewer_display_get_enabled(display))
|
||||
virt_viewer_window_desktop_resize(display, self);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user