diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-03-19 10:53:55 -0500 |
---|---|---|
committer | Jonathon Jongsma <jjongsma@redhat.com> | 2015-03-23 10:15:03 -0500 |
commit | c586dc8c2bf84c2eda4db8759907e954dfb6ad6a (patch) | |
tree | f48adf64dfa636ffc500872dd9d393d95641f08d /src/virt-viewer-app.h | |
parent | b368761ea1ed461e175af175ba4d5b268debc9a8 (diff) | |
download | virt-viewer-c586dc8c2bf84c2eda4db8759907e954dfb6ad6a.tar.gz virt-viewer-c586dc8c2bf84c2eda4db8759907e954dfb6ad6a.tar.xz virt-viewer-c586dc8c2bf84c2eda4db8759907e954dfb6ad6a.zip |
Monitor config at sometimes leaves additional monitors enabled
When using the configuration file to specify which remote monitors should be
enabled when using the --full-screen option, it sometimes left additional
displays enabled, or didn't place the displays on the right monitor, or didn't
fullscreen them.
This was especially true when not enabling the first display on the remote
host. For example:
monitor-mapping=2:2;3:3
(note that configuration file uses 1-based indexes, rather than 0-based
indexes, so the numbers used below will be 1 less than those above)
Previously, when performing fullscreen auto-conf, we were configuring displays
starting at #0 and ending at ndisplays. So for the previous configuration, we
looped from i = 0 to i < 2 (i.e. display #0 and #1) even though we should have
configured display #1 and #2. After this fix, we configure the exact displays
that were specified in the monitor-mapping configuration.
Resolves: rhbz#1200750
Diffstat (limited to 'src/virt-viewer-app.h')
-rw-r--r-- | src/virt-viewer-app.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/virt-viewer-app.h b/src/virt-viewer-app.h index d214279..c6449be 100644 --- a/src/virt-viewer-app.h +++ b/src/virt-viewer-app.h @@ -97,7 +97,7 @@ VirtViewerSession* virt_viewer_app_get_session(VirtViewerApp *self); gboolean virt_viewer_app_get_fullscreen(VirtViewerApp *app); GOptionGroup* virt_viewer_app_get_option_group(void); void virt_viewer_app_clear_hotkeys(VirtViewerApp *app); -gint virt_viewer_app_get_n_initial_displays(VirtViewerApp* self); +GList* virt_viewer_app_get_initial_displays(VirtViewerApp* self); gint virt_viewer_app_get_initial_monitor_for_display(VirtViewerApp* self, gint display); void virt_viewer_app_set_enable_accel(VirtViewerApp *app, gboolean enable); void virt_viewer_app_show_preferences(VirtViewerApp *app, GtkWidget *parent); |