mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
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:
@@ -1574,8 +1574,7 @@ GuacUI.Client.attach = function(guac) {
|
|||||||
mouse.onmousedown = mouse.onmouseup = mouse.onmousemove = function(mouseState) {
|
mouse.onmousedown = mouse.onmouseup = mouse.onmousemove = function(mouseState) {
|
||||||
|
|
||||||
// Hide software cursor if local cursor is in use
|
// Hide software cursor if local cursor is in use
|
||||||
if (GuacUI.Client.local_cursor)
|
guac.getDisplay().showCursor(!GuacUI.Client.local_cursor);
|
||||||
guac.getDisplay().showCursor(false);
|
|
||||||
|
|
||||||
// Scale event by current scale
|
// Scale event by current scale
|
||||||
var scaledState = new Guacamole.Mouse.State(
|
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
|
// Hide any existing status notifications
|
||||||
GuacUI.Client.hideStatus();
|
GuacUI.Client.hideStatus();
|
||||||
|
Reference in New Issue
Block a user