diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2013-01-07 13:17:35 +0100 |
|---|---|---|
| committer | Hans de Goede <hdegoede@redhat.com> | 2013-01-07 15:02:42 +0100 |
| commit | f77fad3ddf9dba0a3254d88f009d8336ef43825f (patch) | |
| tree | 2dd44c3ab9a748284286ea87a5a04761eae93ca3 /src | |
| parent | ccecfa1201d5637f48f832df4954407b5fcc732b (diff) | |
randr: Add some more debugging messages
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/vdagent-x11-randr.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/vdagent-x11-randr.c b/src/vdagent-x11-randr.c index 2c1819a..3f88d1b 100644 --- a/src/vdagent-x11-randr.c +++ b/src/vdagent-x11-randr.c @@ -208,6 +208,9 @@ static void delete_mode(struct vdagent_x11 *x11, int output_index, const char* n RRCrtc crtc; int current_mode = -1; + if (x11->debug) + syslog(LOG_DEBUG, "Deleting mode %s", name); + output_info = x11->randr.outputs[output_index]; if (output_info->ncrtc != 1) { syslog(LOG_ERR, "output has %d crtcs, expected exactly 1, " @@ -461,6 +464,10 @@ void vdagent_x11_randr_handle_root_size_change(struct vdagent_x11 *x11, return; } + if (x11->debug) + syslog(LOG_DEBUG, "Root size changed to %dx%d send %d", + width, height, !x11->dont_send_guest_xorg_res); + x11->width = width; x11->height = height; if (!x11->dont_send_guest_xorg_res) { @@ -695,12 +702,17 @@ void vdagent_x11_set_monitor_config(struct vdagent_x11 *x11, } if (primary_w != x11->width || primary_h != x11->height) { + if (x11->debug) + syslog(LOG_DEBUG, "Changing screen size to %dx%d", + primary_w, primary_h); arm_error_handler(x11); XRRSetScreenSize(x11->display, x11->root_window, primary_w, primary_h, DisplayWidthMM(x11->display, x11->screen), DisplayHeightMM(x11->display, x11->screen)); - - x11->set_crtc_config_not_functional = check_error_handler(x11); + if (check_error_handler(x11)) { + syslog(LOG_ERR, "failed to XRRSetScreenSize"); + x11->set_crtc_config_not_functional = 1; + } } update: |
