diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2013-01-07 16:01:38 +0100 |
|---|---|---|
| committer | Hans de Goede <hdegoede@redhat.com> | 2013-01-07 21:39:03 +0100 |
| commit | e2e757137275ae6b0df4a1e8a4026d130bba2fb5 (patch) | |
| tree | d8f2d9db528b197093165a848d591cc2027049ce /src | |
| parent | 06e48b5e9a9227860564820df0f2ef417fd2dafd (diff) | |
| download | vd_agent-e2e757137275ae6b0df4a1e8a4026d130bba2fb5.tar.gz vd_agent-e2e757137275ae6b0df4a1e8a4026d130bba2fb5.tar.xz vd_agent-e2e757137275ae6b0df4a1e8a4026d130bba2fb5.zip | |
randr: Call update_randr_res() from same_monitor_configs()
This is necessary because the randr settings may have been changed underneath
us (by gnome-settings-daemon for example).
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/vdagent-x11-randr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vdagent-x11-randr.c b/src/vdagent-x11-randr.c index cceaaed..65469ff 100644 --- a/src/vdagent-x11-randr.c +++ b/src/vdagent-x11-randr.c @@ -579,7 +579,10 @@ static int same_monitor_configs(struct vdagent_x11 *x11, VDAgentMonitorsConfig * XRRModeInfo *mode; XRRCrtcInfo *crtc; VDAgentMonConfig *client_mode; - XRRScreenResources *res = x11->randr.res; + XRRScreenResources *res; + + update_randr_res(x11); + res = x11->randr.res; if (res->noutput > res->ncrtc) { syslog(LOG_ERR, "error: unexpected noutput > ncrtc in driver"); |
