GUAC-842: Hide mouse when it leaves the display. Reshow the mouse during down/up/move if not using local (hardware) cursor.

This commit is contained in:
Michael Jumper
2014-10-16 23:16:18 -07:00
parent d339c8613e
commit b9e416f189

View File

@@ -1574,8 +1574,7 @@ GuacUI.Client.attach = function(guac) {
mouse.onmousedown = mouse.onmouseup = mouse.onmousemove = function(mouseState) {
// Hide software cursor if local cursor is in use
if (GuacUI.Client.local_cursor)
guac.getDisplay().showCursor(false);
guac.getDisplay().showCursor(!GuacUI.Client.local_cursor);
// Scale event by current scale
var scaledState = new Guacamole.Mouse.State(
@@ -1592,6 +1591,11 @@ GuacUI.Client.attach = function(guac) {
};
// Hide software cursor when mouse leaves display
mouse.onmouseout = function() {
guac.getDisplay().showCursor(false);
};
// Hide any existing status notifications
GuacUI.Client.hideStatus();