[mutter/wip/carlosg/unthrottled-wayland] ci: Force a valid xcursor path




commit 2832c144679f78fb4c7dea6ece40367d8ec3eb19
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Jul 17 18:15:39 2021 +0200

    ci: Force a valid xcursor path
    
    The aarch64 tests somehow don't seem to find xcursor icons, make
    all tests look at the default location.

 .gitlab-ci.yml                            | 2 ++
 src/backends/meta-cursor-sprite-xcursor.c | 5 ++++-
 src/backends/meta-logical-monitor.c       | 2 ++
 3 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 771a8f010b..f13ed80bae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -197,7 +197,9 @@ build-without-native-backend-and-wayland@x86_64:
     G_SLICE: "always-malloc"
     MALLOC_CHECK_: "3"
     NO_AT_BRIDGE: "1"
+    XCURSOR_PATH: "/usr/share/icons/"
   script:
+    - ls -l /usr/share/icons/
     - mkdir -m 700 $XDG_RUNTIME_DIR
     - dbus-run-session -- bash -x ./.gitlab-ci/run-tests.sh
   artifacts:
diff --git a/src/backends/meta-cursor-sprite-xcursor.c b/src/backends/meta-cursor-sprite-xcursor.c
index 96942e3fe1..8c807deb80 100644
--- a/src/backends/meta-cursor-sprite-xcursor.c
+++ b/src/backends/meta-cursor-sprite-xcursor.c
@@ -168,7 +168,10 @@ load_cursor_on_client (MetaCursor cursor, int scale)
   if (xcursor_images)
     return xcursor_images;
 
-  g_warning_once ("No cursor theme available, please install a cursor theme");
+  g_warning_once ("No '%s' cursor theme available for size %d (scale %d),"
+                  " please install a cursor theme",
+                  meta_prefs_get_cursor_theme (),
+                  meta_prefs_get_cursor_size (), scale);
 
   fallback_size = 24 * scale;
   xcursor_images = XcursorImagesCreate (1);
diff --git a/src/backends/meta-logical-monitor.c b/src/backends/meta-logical-monitor.c
index b562e5acb3..e6b00fd0f5 100644
--- a/src/backends/meta-logical-monitor.c
+++ b/src/backends/meta-logical-monitor.c
@@ -100,6 +100,7 @@ meta_logical_monitor_new (MetaMonitorManager       *monitor_manager,
 
   logical_monitor->number = monitor_number;
   logical_monitor->winsys_id = meta_output_get_id (main_output);
+  g_debug ("New logical monitor, scale %f", logical_monitor_config->scale);
   logical_monitor->scale = logical_monitor_config->scale;
   logical_monitor->transform = logical_monitor_config->transform;
   logical_monitor->in_fullscreen = -1;
@@ -149,6 +150,7 @@ meta_logical_monitor_new_derived (MetaMonitorManager *monitor_manager,
   main_output = meta_monitor_get_main_output (monitor);
   logical_monitor->number = monitor_number;
   logical_monitor->winsys_id = meta_output_get_id (main_output);
+  g_debug ("New derived logical monitor, scale %f", scale);
   logical_monitor->scale = scale;
   logical_monitor->transform = transform;
   logical_monitor->in_fullscreen = -1;


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