[mutter/wip/display-no-wayland: 33/33] MonitorXrandr: use XIDs, not API ids, in the warning



commit 5012efbdc2aeaa1c65aba3a67421bf7a7ca3aa1c
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Fri Aug 16 16:37:45 2013 +0200

    MonitorXrandr: use XIDs, not API ids, in the warning
    
    More useful to debug mutter.

 src/core/monitor-xrandr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/core/monitor-xrandr.c b/src/core/monitor-xrandr.c
index 4505570..3e245c9 100644
--- a/src/core/monitor-xrandr.c
+++ b/src/core/monitor-xrandr.c
@@ -664,7 +664,7 @@ meta_monitor_manager_xrandr_apply_configuration (MetaMonitorManager *manager,
 
           if (ok != Success)
             meta_warning ("Configuring CRTC %d with mode %d (%d x %d @ %f) at position %d, %d and transfrom 
%u failed\n",
-                          (unsigned)(crtc - manager->crtcs), (unsigned)(mode - manager->modes),
+                          (unsigned)(crtc->crtc_id), (unsigned)(mode->mode_id),
                           mode->width, mode->height, (float)mode->refresh_rate,
                           crtc_info->x, crtc_info->y, crtc_info->transform);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]