1
0
Fork 0
A repository that has original sources for patches used in the Arch User Repository package called "mutter-performance". https://aur.archlinux.org/packages/mutter-performance
Find a file
Jonas Dreßler 76f689195e tests/utils: Actually block while waiting for input thread flushing
meta_flush_input() creates and runs a main loop in order to block until the
input thread has flushed all its events. This main loop is created on the
default main context though (NULL is passed to g_main_loop_new()), which
means that while the main loop runs, the default main context is active (aka
stage updates will happen).

This causes an issue with tests, specifically when there already is a stage
update queued before running meta_flush_input(): meta_flush_input() will
(as expected) block until the input thread flushed all its events to the
main thread. But while that is happening, the main thread will be doing the
stage update that was already queued, without the new events (the input
thread is just starting to flush those). Then meta_flush_input() returns,
and in our test we see that the stage has been updated, except it wasn't
updated with the latest events. The test now continues and fails.

To fix the issue, make meta_flush_input() truly blocking, so that it only
flushes the input thread, but doesn't drive the global main context while
waiting for that. After the flushing is finished, tests must now manually
iterate the main context themselves to ensure that a stage update happens.

This breaks a few stacking tests, because "move_cursor_to" and "click" use
meta_flush_input() internally. For those commands we now need to dispatch
a stage update afterwards.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3807>
2024-06-19 13:54:15 +00:00
.gitlab/issue_templates gitlab: Add missing < in markdown comment tag 2020-02-14 03:10:28 +00:00
.gitlab-ci ci: Use meson introspect to generate artifact path 2024-05-24 20:55:23 +00:00
clutter cally: Remove Actor.[add|remove]_actor vfuncs 2024-06-18 15:59:09 +02:00
cogl cogl: Mark XlibRenderer.get_display private 2024-06-18 13:32:13 +00:00
data build: Compile schemas locally for use in build tests 2024-06-13 22:14:51 +00:00
doc clutter/frame-clock: Add a state for when scheduled "now" 2024-02-10 16:16:19 +00:00
meson build: Replace custom post-install script 2022-11-19 02:21:05 +01:00
mtk mtk: Add Rectangle.contains_point 2024-06-11 00:49:28 +02:00
po Update Slovak translation 2024-05-29 20:45:14 +00:00
src tests/utils: Actually block while waiting for input thread flushing 2024-06-19 13:54:15 +00:00
subprojects docs: Prefer using gi-docgen from a subproject 2024-02-09 12:29:50 +00:00
tools tools/uncrustify: Fix invalid align_nl_cont value 2024-03-12 12:48:20 +10:00
.editorconfig Add editorconfig file 2024-05-21 09:09:11 +00:00
.gitignore misc: Add common noisy dirs to gitignore 2024-01-08 19:53:57 +01:00
.gitlab-ci.yml ci: Don't build again for creating references 2024-06-15 22:27:29 +02:00
check-style.py check-style: Force the default prefix in git diff 2024-03-12 12:47:56 +10:00
config.h.meson wayland: Add MetaDrmTimeline 2024-03-28 13:27:42 -04:00
COPYING Updated obsolete FSF postal address in COPYING 2014-01-12 08:44:30 +07:00
logo.svg docs: Add a logo 2024-01-09 13:38:54 +00:00
meson.build wayland: Bump connection buffer size to 1MB 2024-06-13 11:58:14 +00:00
meson_options.txt meson: Make libdisplay_info a feature option 2024-02-14 11:37:21 +00:00
mutter.doap DOAP: Remove defunct mailing list; add Discourse 2023-09-15 03:19:22 +02:00
NEWS Bump version to 46.1 2024-04-19 19:48:34 +02:00
README.md misc: Use the new mutter.gnome.org URL 2024-01-12 10:48:20 +00:00

Mutter

Mutter is a Wayland display server and X11 window manager and compositor library.

When used as a Wayland display server, it runs on top of KMS and libinput. It implements the compositor side of the Wayland core protocol as well as various protocol extensions. It also has functionality related to running X11 applications using Xwayland.

When used on top of Xorg it acts as a X11 window manager and compositing manager.

It contains functionality related to, among other things, window management, window compositing, focus tracking, workspace management, keybindings and monitor configuration.

Internally it uses a fork of Cogl, a hardware acceleration abstraction library used to simplify usage of OpenGL pipelines, as well as a fork of Clutter, a scene graph and user interface toolkit.

Mutter is used by, for example, GNOME Shell, the GNOME core user interface, and by Gala, elementary OS's window manager. It can also be run standalone, using the command "mutter", but just running plain mutter is only intended for debugging purposes.

Contributing

To contribute, open merge requests at https://gitlab.gnome.org/GNOME/mutter.

It can be useful to first look at the GNOME Handbook and the documentation and API references below first.

Documentation

API Reference

License

Mutter is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for detalis.