mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	Minor performance enhancements - do NOT take thumbnails every 1000ms, and only use transfer function if not NOP and not a simple copy.
This commit is contained in:
		| @@ -933,24 +933,6 @@ GuacUI.Client.attach = function(guac) { | ||||
|  | ||||
|     }; | ||||
|  | ||||
|     var thumbnail_update_interval = null; | ||||
|  | ||||
|     window.onblur = function() { | ||||
|  | ||||
|         // Regularly update screenshot if window not visible | ||||
|         if (!thumbnail_update_interval) | ||||
|             thumbnail_update_interval = | ||||
|                 window.setInterval(GuacUI.Client.updateThumbnail, 1000); | ||||
|  | ||||
|     }; | ||||
|  | ||||
|     window.onfocus = function() { | ||||
|         if (thumbnail_update_interval) { | ||||
|             window.clearInterval(thumbnail_update_interval); | ||||
|             thumbnail_update_interval = null; | ||||
|         } | ||||
|     }; | ||||
|  | ||||
|     /* | ||||
|      * Disconnect and update thumbnail on close | ||||
|      */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user