Bug 420655 - Toolbar does not appear when connected in fullscreen, impossible to get out with keyboard shortcuts
Summary: Toolbar does not appear when connected in fullscreen, impossible to get out w...
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: RDP (show other bugs)
Version: 20.04
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-27 10:09 UTC by Mark Smith
Modified: 2025-03-11 10:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Smith 2020-04-27 10:09:30 UTC
SUMMARY
It's impossible to get out of fullscreen mode when RDPing to a Windows host. The toolbar does not appear mos of the time, and the keyboard shortcuts such as ctrl-alt-f, alt tab, etc don't work because they get sent to Windows directly.
The toolbar appears some times but not always. I noticed that for the first couple of fullscreen->windowed->fullscreen action it appears fine, then suddenly -it takes slightly longer- to enter fullscreen and the toolbar is nowhere to be found, and after that, it's impossible to get out of fullscreen mode. Sometimes I can actually get out because by some obscure miracle Linux catches my alt-tab, but other times for no discernible reason, Windows catches all key combos (even if "Grab Keys" is not active in KRDC and then all I can do is switch to a tty and kill krdc.

STEPS TO REPRODUCE
1. Open KRDC
2. Connect to Windows using RDP
3. Switch to fullscreen and back to windowed a couple of times
4. Switching to fullscreen takes slightly longer, toolbar disappears completely
5. Impossible to ge the toolbar to come back
6. Also impossible to get back into Linux because all key combinations get sent to Windows instead

EXPECTED RESULT
I expect the toolbar to be there at all times while in fullscreen at the very least. 

SOFTWARE/OS VERSIONS

SOFTWARE/OS VERSIONS
OS: KDE neon 5.18
Kernel: x86_64 Linux 5.3.0-40-generic
Shell: bash 4.4.20
Resolution: 1920x1080
DE: KDE 5.67.0 / Plasma 5.18.2
WM: KWin
GTK Theme: Breeze-Dark [GTK2/3]
Icon Theme: breeze-dark
GPU: GeForce GTX 1060

ADDITIONAL INFORMATION
This is EXTREMELY annoying. Not sure if I'm doing something wrong here, but it seems like a bug to me.
Comment 1 ilisepe1 2020-05-28 14:06:19 UTC
Same thing happens to me (with VNC, not RDP), so it has to be a generic issue:
Sometimes the toolbar doesn't appear in full screen mode, so I can't easily** exit!
It doesn't always happen and I can't figure out a combination to make the problem always reproducible.

**I can exit by using the krdc's disconnect keyboard shortcut (CTRL+W).
Try this Mark, I hope it works for you, if not pls check the keyb shortcut settings.

I have latest kubuntu 20.04
krdc 4:19.12.3-0ubuntu1
kde 5.68.0-0ubuntu1
plasma-integration 5.18.4.1-0ubuntu2

Let me know if you need anything else
Thanks/ilias
Comment 2 Mark Smith 2020-06-12 16:31:22 UTC
Hello Ilias, thank you for replying. I've used  KRDC a few times since reporting this bug, it still happened a few times and your shortcut worked for me to get out of it. I haven't used it many times since then though, I tried it today for a few minutes to control my Windows PC remotely and it never happened once, but I think KDRC was updated as the version is now 20.04.01. Thanks again.
Comment 3 Mark Smith 2020-06-12 16:34:05 UTC
Well then, a few seconds after I sent that reply, I decided to try it again for good measure and the toolbar issue happened again. I guess it's still not fixed then. But, with your shortcut it's possible to disconnect and try again.
Comment 4 Mauro Molinari 2021-03-25 09:53:33 UTC
I also have this problem... and it's a huge problem.
I mean, when this happens, since I disabled Global Shortcuts for KRDC (otherwise Alt+Tab will switch between my local windows, instead of between remote windows and also because otherwise bug #200776 occurs), I can't find a way to get out of full screen, because for some reason Ctrl+Alt+Enter (I'm using RDP) does not work properly (it causes a screen corruption, it "doubles" my screen so that a mirror copy of it is shown on the right side). It's strange because Cltr+Alt+Enter in xfreerdp alone works fine. Please note I have a multi-monitor setup (both on the local system and on the remote one).

The only "workaround" I found is that Ctrl+Esc seems to disconnect KRDC, so I get back the KRDC windows in my Plasma session.
Comment 5 lostfreeman 2024-11-29 16:37:45 UTC
Heads up, 24.08.3 still experienced the bug
Comment 6 Bug Janitor Service 2025-03-07 18:50:04 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/krdc/-/merge_requests/171
Comment 7 Fabio 2025-03-08 20:56:06 UTC
Git commit 95538a93a71b82c445c0ca7af1b062c4f22c98fa by Fabio Bas.
Committed on 08/03/2025 at 20:09.
Pushed by ctrlaltca into branch 'master'.

Rework fullscreen mode to fix bugs related to window appearing on wrong screen and floating bar disappearing in various occasions
Related: bug 501187, bug 488656, bug 477642, bug 421313

M  +45   -69   mainwindow.cpp
M  +10   -2    mainwindow.h

https://invent.kde.org/network/krdc/-/commit/95538a93a71b82c445c0ca7af1b062c4f22c98fa
Comment 8 Fabio 2025-03-11 10:34:56 UTC
Git commit 1290c078cdbe3f930574c661dfe469df1a904803 by Fabio Bas.
Committed on 11/03/2025 at 10:34.
Pushed by ctrlaltca into branch 'release/25.04'.

Rework fullscreen mode to fix bugs related to window appearing on wrong screen and floating bar disappearing in various occasions
Related: bug 501187, bug 488656, bug 477642, bug 421313


(cherry picked from commit 95538a93a71b82c445c0ca7af1b062c4f22c98fa)

Co-authored-by: Fabio Bas <ctrlaltca@gmail.com>

M  +45   -69   mainwindow.cpp
M  +10   -2    mainwindow.h

https://invent.kde.org/network/krdc/-/commit/1290c078cdbe3f930574c661dfe469df1a904803