neutrinolabs / xorgxrdp

Xorg drivers for xrdp
Other
428 stars 108 forks source link

Don't delete RandR outputs and CRT controllers #284

Closed matt335672 closed 4 months ago

matt335672 commented 4 months ago

Rebase of #283

This change doesn't delete outputs or CRT controllers when the screen configuration changes. Instead, the outputs are disconnected.

This emulates the behaviour of other virtual X servers (e.e. tigervnc) and prevents X applications from encountering BadRROutput or BadRRCtrc errors.

The following command can now be used to monitor RandR events generated by xorgxrdp. Previously it could fail with BadRROutput when reconnecting from a client with fewer screens.

xev -root -event randr [-display :xx]
jsorg71 commented 4 months ago

tested with 2 monitors, looks good to me

matt335672 commented 4 months ago

Thanks.

I'll probably pull it into the resize rework I'm doing at the moment then.