mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
gtk: add zoom-to-fit to gtk options.
This allows to set the option on the command line, i.e. "-display gtk,zoom-to-fit={on,off}", overriding the default chosen by qemu. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-id: 20180827095620.26774-1-kraxel@redhat.com
This commit is contained in:
parent
b5dc0d7d56
commit
e8b1386ea1
2 changed files with 17 additions and 1 deletions
10
qapi/ui.json
10
qapi/ui.json
|
@ -1022,12 +1022,20 @@
|
|||
# GTK display options.
|
||||
#
|
||||
# @grab-on-hover: Grab keyboard input on mouse hover.
|
||||
# @zoom-to-fit: Zoom guest display to fit into the host window. When
|
||||
# turned off the host window will be resized instead.
|
||||
# In case the display device can notify the guest on
|
||||
# window resizes (virtio-gpu) this will default to "on",
|
||||
# assuming the guest will resize the display to match
|
||||
# the window size then. Otherwise it defaults to "off".
|
||||
# Since 3.1
|
||||
#
|
||||
# Since: 2.12
|
||||
#
|
||||
##
|
||||
{ 'struct' : 'DisplayGTK',
|
||||
'data' : { '*grab-on-hover' : 'bool' } }
|
||||
'data' : { '*grab-on-hover' : 'bool',
|
||||
'*zoom-to-fit' : 'bool' } }
|
||||
|
||||
##
|
||||
# @DisplayGLMode:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue