Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trapping of all input in window mode #102

Open
specing opened this issue Jan 17, 2015 · 17 comments
Open

trapping of all input in window mode #102

specing opened this issue Jan 17, 2015 · 17 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@specing
Copy link

specing commented Jan 17, 2015

I am connecting to a remote running the same tiling window manager that I am running on my machine and while keyboard control keys work fine in fullscreen, I would like to have an option for tigerVNC to trap all keys even when in window mode.

Something like what Qemu SDL window does, upon clicking on it with mouse it traps all input except a configurable escape code (e.g. right CTRL).


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@CendioOssman CendioOssman added the enhancement New feature or request label Jan 23, 2015
@CendioOssman
Copy link
Member

Overlaps with issue #2.

@specing
Copy link
Author

specing commented Feb 6, 2015

Hah, anniversary edition.

@hackonteur
Copy link
Contributor

I looked into this a little bit and got frustrated. I only have a build environment working in Linux at the moment, but I got the keyboard grabbing to working in windowed mode there. The problem was the ungrabbing. I think that I ran into some fundamental issues with FLTK, at least in X.
If I move the mouse from inside the window to the titlebar, I see FL_LEAVE. Then if I push down the mouse button on the titlebar and drag it around, when I release the mouse button I get an FL_FOCUS and FL_ENTER. If I continue moving the mouse above the titlebar, I never get an FL_LEAVE event, so there is no way to ungrab the keyboard in that case.

@CendioOssman
Copy link
Member

Does indeed sound like a FLTK bug. You could try asking on their mailing list if you don't want to dig around in FLTK yourself.

@hackonteur
Copy link
Contributor

For those interested in this feature, it is worth noting that TurboVNC already supports it (although it is not documented): TurboVNC/turbovnc#26

Also remember that you can use the TurboVNC viewer with the TigerVNC server.

@JoseTomasTocino
Copy link

Has there been any progress in this issue?

@CendioOssman
Copy link
Member

Not much unfortunately. I've started playing around with a different approach to the hotkeys in order to make something like this easier to handle.

@djuarezg
Copy link

still no update?

@CendioOssman
Copy link
Member

Afraid not. Trying to focus on things like #838 right now.

@vermgit
Copy link

vermgit commented Jul 29, 2021

It's 2021 now, so 6.5 years have passed by. Any chance we can have this please?

I mean how am I supposed to switch windows on the remote machine? Clicking the app in the task bar is cumbersome as I'm a keyboard person.

@samhed samhed added the help wanted Extra attention is needed label Aug 2, 2021
@danielkrajnik
Copy link

danielkrajnik commented Nov 2, 2021

It would be really helpful if TigerVNC viewer could capture keyboard like remmina does. Working without it is so much harder.

EDIT: TurboVNC supports keyboard capture (ctrl+alt+shift+G). Is it possible to "copy-paste" that feature to TigerVNC?

EDIT2: I've mentioned that they both stem from TightVNC thinking that it might make it any easier, which is a bit unfair.

@nesqi
Copy link

nesqi commented Nov 10, 2021

It would be great if this could be implemented in some way for two reasons.

  1. I can't get full-screen to work. No matter what I do, selecting it does nothing.
  2. I don't want or need full-screen. I need keyboard grabbing in order to use my hotkeys on the remote computer.

Why couldn't keybord-grab be triggered by menukey+g or something like that. It should be super-simple to implement.

@Apteryks
Copy link

I'd like this, because fullscreen doesn't work correctly on my tiling window manager (ratpoison) for some reason. Is full screen working for other tiling window managers? The window seems to attempt to use my full monitor instead of the tiling frame, and gets hidden/doesn't redraw correctly.

@quyleanh
Copy link

There is still no solution for this issue? :'(

@Apteryks
Copy link

Not that I know, but as hinted in #102 (comment), the TurboVNC client can be used if you need this feature.

@quyleanh
Copy link

quyleanh commented Oct 13, 2022

Not that I know, but as hinted in #102 (comment), the TurboVNC client can be used if you need this feature.

Thank you for remind. I've read it and also found out that RealVNC also support passing system keys directly to server.

However, I would like to use TigerVNC and look forward to seeing TigerVNC support this small (I think) feature.
Someone has patched and people said that it worked in #2 (comment)

@benoit-bertholon
Copy link

Hello,
I had the problem too.
The code is quite clean so I did a fork and managed to recompile vncviewer so that it grabs the keyboard.
https://github.com/benoit-bertholon/tigervnc/blob/bbe_grab_keyboard/install.rst

I tested it only for ubuntu 22.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests