summaryrefslogtreecommitdiffstats
path: root/src/map-file
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-07-16 14:01:06 -0500
committerJonathon Jongsma <jjongsma@redhat.com>2015-09-10 15:52:12 -0500
commit94347e71d225408e5e21577770e6e5d2e78ca780 (patch)
tree6ca1610d6df65a4a3faf424dacb35c95477a8e7f /src/map-file
parentc32ca1aa824dd3aa6be5dee4d328f83987412a06 (diff)
downloadspice-gtk-94347e71d225408e5e21577770e6e5d2e78ca780.tar.gz
spice-gtk-94347e71d225408e5e21577770e6e5d2e78ca780.tar.xz
spice-gtk-94347e71d225408e5e21577770e6e5d2e78ca780.zip
Add spice_main_update_display_enabled()
This is a new function that allows the caller to decide whether to send the new status down to the server or not (analogous to the difference between spice_main_set_display() vs spice_man_update_display()). This new function is needed to reduce unnecessary MonitorsConfig messages from being sent to the server. Because spice-gtk does not maintain any display state internally, it depends on the application to maintain that state. Some state changes come from the server itself (e.g. the guest has changed resolution due to some activity within the guest), and some come from the application (e.g. the user has resized the window of the client). Changes that come from server updates do not need to be sent back down to the server, whereas those that originate from the application *do* need to be sent to the server.
Diffstat (limited to 'src/map-file')
-rw-r--r--src/map-file1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map-file b/src/map-file
index d5a073f..a9abc61 100644
--- a/src/map-file
+++ b/src/map-file
@@ -71,6 +71,7 @@ spice_main_send_monitor_config;
spice_main_set_display;
spice_main_set_display_enabled;
spice_main_update_display;
+spice_main_update_display_enabled;
spice_playback_channel_get_type;
spice_playback_channel_set_delay;
spice_port_channel_get_type;