Bug 501187 - Toolbar disappears when moving full screen window to different display
Summary: Toolbar disappears when moving full screen window to different display
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: general (show other bugs)
Version: 24.12.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
: 501592 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-03-07 14:32 UTC by Isaiah Rosinski
Modified: 2025-03-17 08:54 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isaiah Rosinski 2025-03-07 14:32:52 UTC
SUMMARY
When KRDC is in fullscreen, and I move the fullscreen window to a different display (e.g. with Meta+Shift+Arrow key), the toolbar no longer appears at the top of the screen.

STEPS TO REPRODUCE
Prerequisite: Have multiple monitors
1. Open KRDC.
2. Click the Full Screen button.
3. Press Meta+Shift+Arrow key (or your appropriate shortcut) to move the window to a different monitor.

OBSERVED RESULT
The toolbar appears at the top of the screen when pressing Full Screen. The toolbar disappears completely when moving the window to a different monitor.

EXPECTED RESULT
The toolbar appears at the top of the screen when pressing Full Screen. The toolbar moves to the top of the different monitor when moving the window to a different monitor.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-arch1-1
Graphics Platform: Wayland

ADDITIONAL INFORMATION
I was able to reproduce this issue on 24.12.3 and 24.12.2, but not 24.12.1.
This is a particularly annoying issue due to Bug 488656--in my setup, the leftmost monitor is portrait, so the fullscreen window always appears on the portrait monitor, and once I move it to a landscape monitor I can no longer get to the toolbar (e.g. to capture keys or disconnect).
Comment 1 Bug Janitor Service 2025-03-07 18:50:00 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/krdc/-/merge_requests/171
Comment 2 Fabio 2025-03-07 18:51:11 UTC
Are you able to test the proposed solution at https://invent.kde.org/network/krdc/-/merge_requests/171 ?
Comment 3 Isaiah Rosinski 2025-03-07 19:05:31 UTC
Well, bug 488656 seems to have been fixed (I can comment over there if necessary) but this bug has not. Looks like it's more interesting than it originally appeared.

When I enter fullscreen while the KRDC window is on either of my 1080p landscape monitors, the toolbar will appear properly, and if I switch the window back and forth between the two, the toolbar correctly switches with it.
When I enter fullscreen on my 1080p portrait monitor, the toolbar appears properly, but when I switch the window to either of the landscape monitors, the toolbar disappears, and does not return even if I switch the window back to the portrait monitor. The same behavior occurs if I enter fullscreen on either landscape monitor and switch the window to the portrait monitor.
Comment 4 Fabio 2025-03-08 09:59:03 UTC
Thank you for testing! I pushed an additional commit that should fix the problem when moving the fullscreen window from a portrait monitor to a landscape one or viceversa.
Comment 5 Isaiah Rosinski 2025-03-08 17:13:31 UTC
(In reply to Fabio from comment #4)
> Thank you for testing! I pushed an additional commit that should fix the
> problem when moving the fullscreen window from a portrait monitor to a
> landscape one or viceversa.

Yep, works now. Tested with different arrangements of screen and resolution, as well. The quick work is much appreciated!
Comment 6 Fabio 2025-03-08 20:56:14 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 488656, 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:04 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 488656, 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
Comment 8 Fabio 2025-03-17 08:54:44 UTC
*** Bug 501592 has been marked as a duplicate of this bug. ***