d08a8de265
This commits adds support on the MetaWindow and constraints engine side for asynchronously repositioning a window with a placement rule, either due to environmental changes (e.g. parent moved) or explicitly done so via `meta_window_update_placement_rule()`. This is so far unused, as placement rules where this functionality is triggered are not yet constructed by the xdg-shell implementation, and no users of `meta_window_update_placement_rule()` exists yet. To summarize, it works by making it possible to produce placement rules with the parent rectangle a window should be placed against, while creating a pending configuration that is not applied until acknowledged by the client using the xdg-shell configure/ack_configure mechanisms. An "temporary" constrain result is added to deal with situations where the client window *must* move immediately even though it has not yet acknowledged a new configuration that was sent. This happens for example when the parent window is moved, causing the popup window to change its relative position e.g. because it ended up partially off-screen. In this situation, the temporary position corresponds to the result of the movement of the parent, while the pending (asynchronously configured) position is the relative one given the new constraining result. https://gitlab.gnome.org/GNOME/mutter/merge_requests/705 |
||
---|---|---|
.gitlab/issue_templates | ||
.gitlab-ci | ||
clutter | ||
cogl | ||
data | ||
doc | ||
meson | ||
po | ||
src | ||
tools | ||
.gitignore | ||
.gitlab-ci.yml | ||
config.h.meson | ||
COPYING | ||
meson_options.txt | ||
meson.build | ||
mutter.doap | ||
NEWS | ||
README.md |
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 af 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.
The coding style used is primarily the GNU flavor of the GNOME coding
style
with some minor additions such as preferring stdint.h
types over GLib
fundamental types, and a soft 80 character line limit. However, in general,
look at the file you're editing for inspiration.
Commit messages should follow the GNOME commit message guidelines. We require an URL to either an issue or a merge request in each commit.
License
Mutter is distributed under the terms of the GNU General Public License, version 2 or later. See the COPYING file for detalis.