mutter/src
Simon McVittie 27ce84962a tests: Change how we wait for an orientation change
Previously, we were waiting up to 300ms for the signal, then proceeding
anyway. However, 300ms is not necessarily long enough to wait on an
autobuilder that might be heavily loaded, particularly if it's a non-x86
with different performance characteristics.

Conversely, if mutter responds to the D-Bus signal from the mock sensor
before we have connected to the signal, then we cannot expect to receive
the signal - it was already emitted, but we missed it. In this case, we
need to avoid waiting.

One remaining use of wait_for_orientation_changes() that would previously
always have timed out was in
meta_test_orientation_manager_has_accelerometer(), which does not
actually expect to see an orientation-changed signal. Make this wait
for the accelerometer to be detected instead.

Resolves: https://gitlab.gnome.org/GNOME/mutter/-/issues/1967
Bug-Debian: https://bugs.debian.org/995929
Signed-off-by: Simon McVittie <smcv@debian.org>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2049>
2021-10-22 07:43:19 +00:00
..
backends wayland: Only init EGLStream controller if we didn't end up with gbm 2021-10-20 13:08:06 +00:00
compositor shaped-texture: Remove mask texture handling from get_image() 2021-09-22 13:07:44 +00:00
core util: Export and annotate meta_get_clutter_debug_flags 2021-10-18 16:46:59 +00:00
meta util: Export and annotate meta_get_clutter_debug_flags 2021-10-18 16:46:59 +00:00
tests tests: Change how we wait for an orientation change 2021-10-22 07:43:19 +00:00
ui main: Move rect related macro to util-private.h 2021-05-17 16:08:42 +00:00
wayland wayland: Only init EGLStream controller if we didn't end up with gbm 2021-10-20 13:08:06 +00:00
x11 x11: Initialize g_autofree with NULL 2021-09-04 20:00:23 +00:00
libmutter.pc.in build: Fix libs and cflags in autotools .pc file 2018-11-10 16:20:46 +00:00
meson.build drm-buffer: Replace 'use-modifier' boolean with flags 2021-10-18 17:33:33 +02:00
meta-private-enum-types.c.in core: Drop "volatile" from static GTypes in manual registration 2021-03-22 10:47:51 +00:00
meta-private-enum-types.h.in screen-cast: Add screen cast flag to streams 2020-07-30 09:51:16 +02:00
org.freedesktop.login1.xml
org.gnome.Mutter.DisplayConfig.xml x11: Support the CTM (color transform matrix) RandR property 2021-01-11 13:44:54 +00:00
org.gnome.Mutter.IdleMonitor.xml idle-monitor: Add ResetIdletime API, for testing purposes 2018-04-16 13:28:03 +02:00
org.gnome.Mutter.RemoteDesktop.xml remote-desktop/session: Add CapsLockState and NumLockState properties 2021-03-04 17:39:08 +00:00
org.gnome.Mutter.ScreenCast.xml screen-cast/session: Introduce RecordVirtual D-Bus API 2021-03-12 15:09:45 +00:00