Bug 488656 - KRDC going fullscreen will always place the application on the leftmost screen
Summary: KRDC going fullscreen will always place the application on the leftmost screen
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: RDP (show other bugs)
Version: 24.05.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-18 09:44 UTC by Arek Guzinski
Modified: 2025-03-11 10:35 UTC (History)
4 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 Arek Guzinski 2024-06-18 09:44:14 UTC
SUMMARY
KRDC going fullscreen will always place the application on the leftmost screen

STEPS TO REPRODUCE
Prequisite: Have multiple screens.
1. Start KRDC and have the window on a different screen that the leftmost one.
2. Connect to an RDP client or switch active windowed connection to fullscreen

OBSERVED RESULT
The RDP window goes fullscreen on the leftmost screen.

EXPECTED RESULT
The RDP window goes fullscreen on the same screen the window was. (possible Alternative: Screen that best matches the Resolution configured in KRDC's client settings)

SOFTWARE/OS VERSIONS
Operating System: KDE neon 6.0
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Graphics Platform: Wayland

ADDITIONAL INFORMATION
Tested with krdc-window on central screen (1920×1200), which is also set up as primary.
Client settings also specify a resolution of 1920×1200.
Left screen is 1024×1280.
Comment 1 Arek Guzinski 2024-08-29 10:00:40 UTC
This issue got worse: after moving it to another screen, the pop-up toolbar is no longer available (24.08.0).
Comment 2 Ryan Voots 2024-12-18 12:52:43 UTC
I also experience something like this, though for me it's the left most and top most screen (My monitors are arranged like a tetris Z piece), I'm working around it by using xwayland/xcb by setting QT_QPA_PLATFORM=xcb in the krdc application shortcut (right click on the K menu, not sure what else to call it) and edit application.  Not a real fix for it but on xwayland it'll fullscreen on whatever monitor the original application was on for me, which is the behavior i'd expect.
Comment 3 Bug Janitor Service 2025-03-07 18:50:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/krdc/-/merge_requests/171
Comment 4 Fabio 2025-03-07 18:51:57 UTC
It would be nice if anyone could test the proposed solution at https://invent.kde.org/network/krdc/-/merge_requests/171 so it gets release in the next version on april
Comment 5 Isaiah Rosinski 2025-03-07 19:17:21 UTC
I am able to reproduce this issue on 24.12.1, .2, and .3. I tested the proposed patch, and it resolves this issue, so that KRDC will go fullscreen on the same monitor that the original window was on.
Comment 6 Fabio 2025-03-08 20:55:57 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 420655, bug 477642, bug 421313

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

https://invent.kde.org/network/krdc/-/commit/95538a93a71b82c445c0ca7af1b062c4f22c98fa
Comment 7 Fabio 2025-03-11 10:35:20 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 420655, 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