summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ci: Add gi-docgen dependencies to imagezbrown/docs-depsZander Brown2021-07-191-1/+5
|
* docs: Add README section for default branchFlorian Müllner2021-07-181-0/+13
| | | | | | | | | We are about to change it, so briefly outline how to update local checkouts. (Copied from glib) Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1930>
* Rename the master branch to mainFlorian Müllner2021-07-181-1/+1
| | | | | | | | It's a more inclusive name, has the same tab-completion prefix, and is the default choice for new repositories created locally by git, and on GitHub and GitLab. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1930>
* ci: Fallback to HEAD when checking out branchFlorian Müllner2021-07-181-1/+1
| | | | | | ... instead of hardcoding origin/master as the default branch. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1930>
* compositor: Update outdated URLFlorian Müllner2021-07-181-1/+1
| | | | | | | | The file was moved a while ago. Update the link to the new location, and specify a particular tag instead of master to make sure this doesn't happen again. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1930>
* Update POTFILES.inPiotr Drąg2021-07-181-1/+2
|
* meson: Bump required libinput version to 1.18.0Robert Mader2021-07-161-1/+1
| | | | | | This is needed for https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1763 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1933>
* backends: Promote g_debug() MetaStageImpl message to meta_topic()Carlos Garnacho2021-07-161-13/+22
| | | | | | | | We now have a META_DEBUG_BACKEND topic that can suit this bag of assorted debug messages. Assign it to these, instead of plain G_MESSAGES_DEBUG=mutter. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Remove unused EGL headerCarlos Garnacho2021-07-161-32/+0
| | | | | | This just pulled cogl headers, so not very useful. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Remove leftovers from backend code in build systemCarlos Garnacho2021-07-166-60/+0
| | | | Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Drop generation of x11 pkgconfig fileCarlos Garnacho2021-07-161-14/+0
| | | | | | This is no longer needed, at least from the Clutter API perspective. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* backends: Shuffle ClutterBackendX11 code into MetaClutterBackendX11Carlos Garnacho2021-07-1630-1261/+832
| | | | | | | We have a Clutter implementation of the X11, just to subclass it in our backends. Move the implementation entirely to src/backends/x11. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Drop dead X11 codeCarlos Garnacho2021-07-162-11/+0
| | | | | | We don't use the ClutterBackendX11 direct constructor. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Drop Xsettings client codeCarlos Garnacho2021-07-168-1222/+0
| | | | | | | | We only listen to it for 2 settings (drag threshold, double click time), and we already have the stock ClutterSettings object tracking the source of these. This code is redundant. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* backends: Excise MetaStageView to its own fileCarlos Garnacho2021-07-166-179/+267
| | | | | | | It was implemented together with MetaStageImpl, move it to a separate file. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* backends: Rename ClutterStage[View]Cogl API and typesCarlos Garnacho2021-07-1611-209/+207
| | | | | | | Rename to MetaStageImpl and MetaStageView, so they are in line with the rest of the backend code. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Move ClutterStageCogl[View] code to src/backendsCarlos Garnacho2021-07-166-36/+47
| | | | | | This is now MetaStageImpl in backend code. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* core: Add private utility function to get Clutter debug flagsCarlos Garnacho2021-07-162-1/+13
| | | | | | This will be used to fetch the debug flags from backend code. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Export private function to get debug flagsCarlos Garnacho2021-07-162-0/+18
| | | | | | | We're shuffling some code into src/backends, that needs knowing about these flags to minimize immediate refactors. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Make ClutterStageView API public to mutterCarlos Garnacho2021-07-165-1/+13
| | | | | | | All subclasses and stage implementations will come from src/backends, so this internal API must be accessible there. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Make ClutterDamageHistory API public to mutterCarlos Garnacho2021-07-162-0/+9
| | | | | | | | We are moving things to src/backends, make this helper object able to be used there. This is a temporary measure as ClutterDamageHistory itself should be moved too. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* clutter: Demote CLUTTER_NOTE to g_debug in clutter-stage-cogl.cCarlos Garnacho2021-07-161-18/+13
| | | | | | | This code is being shuffled out of Clutter code, so cut the ties with it before doing that. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* backends/native: Remove unused array definitionCarlos Garnacho2021-07-161-16/+0
| | | | | | | This array is a relic from the input code belonging to Clutter, and is nowadays unused. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1862>
* onscreen/native: Change some g_debug() meta_topic()Jonas Ådahl2021-07-161-18/+30
| | | | | | | | g_debug() is inconvenient to use; change to meta_topic() with the 'kms' topic. This makes it possible to enable valuable debug output at runtime. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>
* device-pool: Add debug loggingJonas Ådahl2021-07-161-0/+22
| | | | | | Enabled by enabling the 'backend' debug topic. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>
* util: Add 'backend' debug topicJonas Ådahl2021-07-162-0/+5
| | | | | | | Meant for backend things that are not large enough to warrant their own topic. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>
* cogl/gl: Handle bogus glGetString(GL_RENDERER) return valuesJonas Ådahl2021-07-161-0/+7
| | | | | | | | | Seems glGetString(GL_RENDERER) in the wild can return NULL, causing issues with strstr(). Handle this more gracefully by using g_return_val_if_fail(), that assumes a NULL renderer means software rendering. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>
* renderer/native: Include error message in log entriesJonas Ådahl2021-07-161-4/+6
| | | | | | | | We had a GError handed to us, where we logged a warning, but didn't log the message from the error. Do that so it becomes easier to find out what might have failed. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>
* drm-buffer/dumb: Return TRUE when init succeededJonas Ådahl2021-07-161-1/+1
| | | | | | | | | | Returning FALSE means it failed, but we returned FALSE even when it succeeded, meaning it would never succeed. Fixes: 10c4bc6e3f0230e587190bcd73f211dd5056b9ca Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1880 Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1888 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1932>
* context: Move the signal handling and dir management to userJonas Ådahl2021-07-151-47/+0
| | | | | | | | Signals and changing current directory is a process global action, thus isn't that suitable for a library. Thus, move that responsibility to gnome-shell. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests: Make common test code a shared libraryJonas Ådahl2021-07-1523-65/+121
| | | | | | | | This will require some symbol exporting, but the benefit is that have better control of what external test cases can do in terms of creating more testing specific contexts. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests/test-utils: Move test client path ensure helper to private headerJonas Ådahl2021-07-154-5/+28
| | | | | | | | It's only used from the test context, and the main test utils header file will be used to export helper functionality, so move it out, preparing for that. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests: Move 'wait-for-X11-display' helper to MetaContextTestJonas Ådahl2021-07-1510-37/+80
| | | | | | Gets rid of a un-prefixed helper function relying on a global singleton. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests/test-utils: Remove unused init functionJonas Ådahl2021-07-152-16/+0
| | | | | | This is now dealt with by MetaContextTest. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* context/test: Make type derivableJonas Ådahl2021-07-152-13/+26
| | | | | | | | This makes it possible to declare the type in an installed header (so that e.g. META_CONTEXT_TEST(context) works), but without having to expose the MetaContextClass struct. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests: Prefix test plugin name getter with meta_Jonas Ådahl2021-07-153-3/+3
| | | | | | It'll be used via the new shared library, so prefix it. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests/utils: Prefix AsyncWaiter with MetaJonas Ådahl2021-07-153-34/+39
| | | | | | This too will be used by test cases via a shared library. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests/utils: Prefix TestClient with MetaJonas Ådahl2021-07-154-206/+249
| | | | | | Soon we'll expose it via a libmutter-test library. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* tests: Rename test-utils.c/h to meta-test-utils.c/hJonas Ådahl2021-07-158-11/+11
| | | | | | | | Otherwise it'll conflict with other files with identical filenames, if one would add src/tests/ to the include path, which will happen in a later commit. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* context: Move 'replace-current-wm' tracking to the contextJonas Ådahl2021-07-1511-31/+52
| | | | | | | This move yet another scattered global static variable into the context's control. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* context: Move X11 display policy under the contextJonas Ådahl2021-07-1510-154/+84
| | | | | | | | The context implementations already effectively dictate the policy, so let them do it more directly instead of going indirectly via global variables. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* context: Allow controlled destructionJonas Ådahl2021-07-152-1/+22
| | | | | | | | | Add a method meta_context_destroy() that both runs dispose and unrefs the context. Tear down is moved to dispose() so that things owned by the context are destroyed when calling meta_context_destroy(), or when the last reference is released. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* context: Add explicit state trackingJonas Ådahl2021-07-151-4/+58
| | | | | | This will help finding out when things happen in the wrong order. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* x11-display: Get _GNOME_WM_KEYBINDINGS from the contextJonas Ådahl2021-07-155-20/+29
| | | | Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* x11-display: Get _NET_WM_NAME from contextJonas Ådahl2021-07-154-20/+12
| | | | | | | It's equivalent to the name that was passed when the context was created. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* wayland: Initialize in a single stepJonas Ådahl2021-07-153-21/+10
| | | | | | | | | | | Before we first created the MetaWaylandCompositor instance, which would repare Clutter/Cogl so they could initialize and turn on Wayland display server features, then later to initialize the rest. Now that part is done by the Wayland infrastructure itself, so we don't need the early initialization. Simplify things a bit by centralizing it all into a single meta_wayland_compositor_new() call. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* context: Make the context own MetaWaylandCompositorJonas Ådahl2021-07-1513-100/+65
| | | | Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* Remove meta_quit()Jonas Ådahl2021-07-154-50/+1
| | | | | | | It is no longer used, so remove it. This also removes the intermediate MetaContext global singleton, as it is no longer needed. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* x11/session: Use MetaContext to terminate instead of meta_quit()Jonas Ådahl2021-07-153-25/+44
| | | | | | | | | This is done by keeping around a pointer to MetaContext as "client_pointer" (which is practically the same as "user_pointer" elsewhere), as well as creating a `MetaIceConnection` wrapper for ICE connections. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
* x11/events: Use MetaContext to terminate instead of meta_quit()Jonas Ådahl2021-07-151-3/+5
| | | | Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>