Go to file
Peter Hutterer 5ec67a8e90 backends/native: Change the MetaBezier API to sampling and lookup
This keeps the existing ClutterBezier implementation but changes
the visible API to match the needs of the tablet tool pressure curve:
a bezier defined within a [0.0/0.0, 1.0/1.0] box,(sampled
into a set of x->y mappings for each possible pressure input x, and
a lookup function to get those values out of the curve.

This patch moves the internally-only functions to be statics and changes
meta_bezier_init() to take only the second and third control point, as
normalized doubles. Because internally we still work with integers, the
bezier curve now has an integer "precision" that defines how many points
between 0.0 and 1.0 we can sample.

The meta_bezier_rasterize() function calculates the x->y mapping for
each point on the bezier curve given the initial scale of the curve.
That value is then available to the caller via meta_bezier_lookup().

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3399>
2024-01-05 10:21:42 +00:00
.gitlab/issue_templates gitlab: Add missing < in markdown comment tag 2020-02-14 03:10:28 +00:00
.gitlab-ci ci: Look for matching ref in user remote for branch pipeline 2023-08-08 04:11:13 +02:00
clutter clutter/stage: Remove no longer used struct 2024-01-04 14:00:26 +00:00
cogl cogl/cpu-caps: Build cpuid and xgetbv only for x86_64 2024-01-04 16:45:37 +00:00
data Add debug controller 2023-12-01 14:25:08 +00:00
doc docs: Import Clutter Rendering Model wiki page 2024-01-03 22:41:10 +01:00
meson build: Replace custom post-install script 2022-11-19 02:21:05 +01:00
mtk mtk: Mark mtk_rectangle_to_graphene_rect in-variable as const 2023-12-29 12:45:19 +01:00
po Update Russian translation 2023-12-11 12:16:42 +00:00
src backends/native: Change the MetaBezier API to sampling and lookup 2024-01-05 10:21:42 +00:00
subprojects build: Update sysprof build options 2022-12-17 19:58:00 +00:00
tools docs: Move the gitlab wiki and other docs to the docs/ directory 2024-01-03 20:54:57 +00:00
.gitignore Add .buildconfig to .gitignore 2023-02-17 21:44:29 +00:00
.gitlab-ci.yml ci: Mark our git clone as a safe directory 2023-12-13 11:09:32 +00:00
check-style.py ci: Mark the regex to find chunks in code style checks as regex string 2023-12-15 14:49:57 +00:00
config.h.meson build: One config file to rule them all 2023-11-15 12:00:19 +00:00
COPYING Updated obsolete FSF postal address in COPYING 2014-01-12 08:44:30 +07:00
meson_options.txt edid: Integrate libdisplay-info for edid parsing 2023-05-02 17:37:01 +00:00
meson.build build: Require libdrm >= 2.4.95 2024-01-03 14:46:04 +01:00
mutter.doap DOAP: Remove defunct mailing list; add Discourse 2023-09-15 03:19:22 +02:00
NEWS Bump version to 45.0 2023-09-16 22:51:03 +02:00
README.md docs: Add Building and Running topic 2024-01-03 20:54:57 +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.