This patch seires is for adding some useful features for the guest os with multi-displays. First patch is to make all of guest displays visible when guest os is launched using "detach". Second patch is for providing a method to assign each guest display to specific physical monitor, which would be useful if someone wants to directly full-screen individual guest scanouts to host's physical displays.
Changes in v5: * ui/gtk: a new array param monitor to specify the target - rephrased the description of the new param, 'monitor' for clarification Changes in v4: * ui/gtk: a new array param monitor to specify the target - changed "virtual-console" to an official term, "virtual console" - made if condition to check only 'full_screen' since 'has_full_screen' won't affect the result as 'full_screen' is always false if 'has_full_screen' is false. Changes in v3: * ui/gtk: a new array param monitor to specify the target - Revised commit message - Rewrote desription of the new parameter for clarification - 'for' loop that iterates through virtual consoles is actually executed only once only if the condition is met so replaced it with 'if' statement Changes in v2: * ui/gtk: detach VCS for additional guest displays - must check if the type of VC is GD_VC_GFX before qemu_console_is_graphic - It is not needed to pre-calculate n_gfx_vcs to determine how many times "detach" should be executed (n_gfx_vcs - 1) because the first virtual console (vc[0]) is always in graphic mode so we can simply detach all other graphic mode virtual consoles. - making sure detached window's size same as original surface size Dongwon Kim (2): ui/gtk: detach VCs for additional guest displays ui/gtk: a new array param monitor to specify the target displays qapi/ui.json | 9 ++++++++- qemu-options.hx | 3 ++- ui/gtk.c | 41 +++++++++++++++++++++++++++++++++++++++-- 3 files changed, 49 insertions(+), 4 deletions(-) -- 2.20.1