Bug 494230 - [wayland] wlfreerdp window has wrong size if global global scaling is used
Summary: [wayland] wlfreerdp window has wrong size if global global scaling is used
Status: RESOLVED FIXED
Alias: None
Product: krdc
Classification: Applications
Component: RDP (show other bugs)
Version: 23.08.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Urs Wolfer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-07 07:27 UTC by themroc
Modified: 2024-11-23 16:25 UTC (History)
1 user (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 themroc 2024-10-07 07:27:47 UTC
SUMMARY
The wlfreerdp window has wrong size if global global scaling is used.
It does not matter whether wlfreerdp is started from kdrc or directly from the terminal.
The window size is too large by exactly the global scaling factor.
E.g. scaling factor 125 %:
On a 1366 x 768 pixel screen, wlfreerdp must be started as follows: wlfreerdp /v:<server> /size:1100x550 to obtain a window of approximately 1366 x 768 pixels.

STEPS TO REPRODUCE
1. Start RDP Session from KRDC with e.g. actual size
or 2. Start RDP Session from KRDC with any size
or 3.  Start wlfreerdp directly from command line with any size

OBSERVED RESULT
1. wlfreerdp window is too big (the window is as much larger as the scaling factor)
2. same from terminal

EXPECTED RESULT
kdrc or wlfreerdp take the global scaling of the Plasma Desktop into account when entering the window size.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.10
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.6.2
Kernel Version: 6.11.0-8-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Pentium® CPU N3710 @ 1.60GHz
Memory: 3.7 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 405

ADDITIONAL INFORMATION
Comment 1 Fabio 2024-11-23 16:25:13 UTC
Krdc doesn't use xfreerdp/wlfreerdp anymore since version 24.02. It now directly links to libfreerdp, and fixes has been added to correctly support scaling even on wayland.