[mutter/wip/carlosg/unthrottled-wayland] ci: Force a valid xcursor path
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/unthrottled-wayland] ci: Force a valid xcursor path
- Date: Sun, 18 Jul 2021 11:02:17 +0000 (UTC)
commit 8d8789d2dfaff814cb5f0010b2d6f032b5e53c5b
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..ba85e009ac 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", 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]