diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2013-01-07 15:26:41 +0100 |
|---|---|---|
| committer | Hans de Goede <hdegoede@redhat.com> | 2013-01-07 19:59:18 +0100 |
| commit | 06e48b5e9a9227860564820df0f2ef417fd2dafd (patch) | |
| tree | 20e19ea23bf0b36bec6d19f0232ed9dd7194531e /src | |
| parent | 1e0f8b57d6934809c220eea601c148c0a17e1c36 (diff) | |
| download | vd_agent-06e48b5e9a9227860564820df0f2ef417fd2dafd.tar.gz vd_agent-06e48b5e9a9227860564820df0f2ef417fd2dafd.tar.xz vd_agent-06e48b5e9a9227860564820df0f2ef417fd2dafd.zip | |
randr: Move same_monitor_configs() call to after zero rooting the coordinates
If the client is sending non 0,0 rooted monitor coordinates these won't
match what we've configured in the X-server if we check them before having
called zero_base_monitors().
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/vdagent-x11-randr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/vdagent-x11-randr.c b/src/vdagent-x11-randr.c index fc7ab25..cceaaed 100644 --- a/src/vdagent-x11-randr.c +++ b/src/vdagent-x11-randr.c @@ -672,10 +672,6 @@ void vdagent_x11_set_monitor_config(struct vdagent_x11 *x11, goto exit; } - if (same_monitor_configs(x11, mon_config)) { - goto exit; - } - if (x11->debug) { dump_monitors_config(x11, mon_config, "from guest"); } @@ -684,6 +680,10 @@ void vdagent_x11_set_monitor_config(struct vdagent_x11 *x11, constrain_to_screen(x11, &primary_w, &primary_h); + if (same_monitor_configs(x11, mon_config)) { + goto exit; + } + if (x11->debug) { dump_monitors_config(x11, mon_config, "after zeroing"); } |
