kokoko3k / ssh-rdp

Real display ssh based remote desktop
GNU Lesser General Public License v3.0
142 stars 30 forks source link

[Question] suggestions for window and input control on touchscreen devices #27

Open xenogenesi opened 3 months ago

xenogenesi commented 3 months ago

99% of the time I use ssh-rdp with a touchscreen, I don't have immediate access to a keyboard and therefore hotkeys for window maximization and input forwarding.

I was thinking of implementing a "button window", setting it as "always on top" and having some events sent to the ssh-rdp window but I noticed that ssh-rdp goes on top of the top windows.

I would need to stop event forwarding and move the window back or minimize it, any suggestions on how I could implement this?

Thanks in advance

kokoko3k commented 3 months ago

I'm not sure i fully understood you issue.

There is no window to pass events to, either the low level input device is sent to the remote host or to the local one, this is by design.

You can buy one of those cheap and low quality wireless chinese keyboards, they are small and handy at least (?)

xenogenesi commented 3 months ago

Hi, thanks for the reply, it's a choice not to have the keyboard (except for debugging). I use it similar to a kiosk.

For now I have partially solved it by creating the "button window" application on the ssh server, so it is shown in the foreground in the player window. Long story short, somehow pressing the button calls up a shell script on the client/tablet, the script uses xdotool, I manage to activate the player window, minimize it, but for some reason the keyboard events to stop forwarding or maximization don't work (I have also tried other commands besides xdotool to generate key events but so far without success).