1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-22 19:23:31 +00:00

Update Mouse Capture to show Arrow-Question if Atom Name is unknown.

This commit is contained in:
Bryan Roe
2019-09-20 17:01:34 -07:00
parent bc441709ca
commit 965b3d0783

View File

@@ -739,6 +739,7 @@ void* kvm_server_mainloop(void* parm)
if (strcmp(name, "top_side") == 0) { curcursor = KVM_MouseCursor_SIZENS; } if (strcmp(name, "top_side") == 0) { curcursor = KVM_MouseCursor_SIZENS; }
if (strcmp(name, "xterm") == 0 || strcmp(name, "ibeam") == 0) { curcursor = KVM_MouseCursor_IBEAM; } if (strcmp(name, "xterm") == 0 || strcmp(name, "ibeam") == 0) { curcursor = KVM_MouseCursor_IBEAM; }
x11_exports->XFree(name); x11_exports->XFree(name);
}
((unsigned short*)buffer)[0] = (unsigned short)htons((unsigned short)MNG_KVM_MOUSE_CURSOR); // Write the type ((unsigned short*)buffer)[0] = (unsigned short)htons((unsigned short)MNG_KVM_MOUSE_CURSOR); // Write the type
((unsigned short*)buffer)[1] = (unsigned short)htons((unsigned short)5); // Write the size ((unsigned short*)buffer)[1] = (unsigned short)htons((unsigned short)5); // Write the size
@@ -749,7 +750,6 @@ void* kvm_server_mainloop(void* parm)
} }
} }
} }
}
screen_num = DefaultScreen(imagedisplay); screen_num = DefaultScreen(imagedisplay);
screen_height = DisplayHeight(imagedisplay, screen_num); screen_height = DisplayHeight(imagedisplay, screen_num);