Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RDA: Don't apply stored monitor configuration if session is remote. #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sunweaver
Copy link
Member

With remote sessions (like X2Go, xRDP, etc.) the xRandR configuration is normally handled by the remote desktop technology in use.

This change adds a return early to MATE's xrandr MSD monitor resolution restoring code path, if the session is remote.

Note: this PR requires a new build dependency on librda [1]

[1] https://github.com/ArcticaProject/librda.git

@@ -2407,6 +2411,12 @@ apply_intended_configuration (MsdXrandrManager *manager, const char *intended_fi
GError *my_error;
gboolean result;

#ifdef HAVE_RDA
if (rda_session_is_remote()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Respect code style. File doesn't use tabs.

@lukefromdc
Copy link
Member

Any updates on this or should we close it? Tabs need to go, and conflict needs to be fixed to continue with it

@lukefromdc
Copy link
Member

This is actually worth finishing, so as to avoid risk of invalidating someone's local monitor setup during a remote connection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants