Commit Graph

14 Commits (bcad19542e02921f1f275532cc7854559d737cb5)

Author SHA1 Message Date
Mariusz Marciniak 0a45fcc700 KASM-1871 Add smooth scrolling
Previously all scrolling relied on "clicking" the up/down or left/right scroll buttons
which made it unprecise and to always scroll at the same speed.

Now we pass the scroll delta directly to the xorg input driver so the scroll is more responsinve and adaptive.
4 years ago
Lauri Kasanen f57e6e644b Add some more frame stats granularity, skip frame stats on no-data calls 4 years ago
Lauri Kasanen fb9dd56703 Initial /api/get_frame_stats 4 years ago
Lauri Kasanen 32e8d40472 Implement /api/get_bottleneck_stats 4 years ago
Lauri Kasanen 7a695c976e Writer perms were checked in multiple places, consolidate and fix a missing case 4 years ago
Lauri Kasanen 95d34f7e58 Fix some local->remote clipboard merge misses 4 years ago
Lauri Kasanen a1cf454f06 Sync utf8 clipboard support 4 years ago
lhchavez 25b8e64adb Add support for notifying clients about pointer movements
This change adds support for the VMware Mouse Position
pseudo-encoding[1], which is used to notify VNC clients when X11 clients
call `XWarpPointer()`[2]. This function is called by SDL (and other
similar libraries)  when they detect that the server does not support
native relative motion, like some RFB clients.

With this, RFB clients can choose to adjust the local cursor position
under certain circumstances to match what the server has set. For
instance, if pointer lock has been enabled on the client's machine and
the cursor is not being drawn locally, the local position of the cursor
is irrelevant, so the RFB client can use what the server sends as the
canonical absolute position of the cursor. This ultimately enables the
possibility of games (especially FPS games) to behave how users expect
(if the clients implement the corresponding change).

Part of: #619

1: https://github.com/rfbproto/rfbproto/blob/master/rfbproto.rst#vmware-cursor-position-pseudo-encoding
2: https://tronche.com/gui/x/xlib/input/XWarpPointer.html
3: https://hg.libsdl.org/SDL/file/28e3b60e2131/src/events/SDL_mouse.c#l804
4 years ago
matt 46e03289be Manually merged region changes 4 years ago
Lauri Kasanen 1f69d1584a Prevent read-only clients from changing kasm settings 5 years ago
Lauri Kasanen 0c83a86bc8 Dynamically apply permissions 5 years ago
Lauri Kasanen 263d05a296 Apply read-only perms upon connecting 5 years ago
Lauri Kasanen d5bdef121a Add support for bottleneck stats 5 years ago
matt 408c005d3e Initial commit 5 years ago