Skip to content

Resize problem when reconnecting at a different resolution #914

@diego-santacruz

Description

@diego-santacruz

I have just set up xrdp to use with xorgxrdp on CentoS 7.4.

Connections work well, but when I reconnect with a different client with a different resolution the screen is not completely resized.

To test I connected from my laptop first (1600x900) in "full screen" and then I connect from my iPhone using the MS RD client which uses 1364x768. It reconnects to the same session (good!) but there is clearly stuff left outside the visible screen and there is no panning, the right and bottom are missing. Interestingly, the windows are automatically repositioned so that they are within the visible screen, but the desktop background, task bar in the bottom and menu bar at the top are not resized. So I am missing part of the taskbar and the buttons at the right of the menu bar.

Querying with xrandr shows that the output is set the the new resolution, but the some of the DE elements were not resized. I discovered that if I attempt set a size via xrandr which is larger than the xrdp screen then everything adjusts to match the xrdp screen size (I have first to define the corresponding mode and add it to the output, via xrandr cli).

The converse occurs when I connect back with my laptop in "full screen", which has a larger screen. Now I see "empty" areas on the right and bottom. Again, setting a size larger than the xrdp screen adjusts everything to match the xrdp screen size.

So it appears that xorgxrdp is doing resizing but not completely, or missing some notifications, and attempting to resize with xrandr to a size larger than the xrdp screen forces it to resync everything to the xrdp screen size.

Note that I run on CentOS 7.4 with the gnome session.

Versions:
xrdp-0.9.3-2.el7.x86_64
xorgxrdp-0.2.4-3.el7.x86_64
Windows 10 remote desktop client 10.0.15063
Microsoft RD client for iOS 8.1.35 (on iOS 11.0.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions