cleanup: Remove not used X11 includes

Also add ones where they are actually used

Helps https://gitlab.gnome.org/GNOME/mutter/-/issues/2272

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3603>
This commit is contained in:
Bilal Elmoussaoui 2024-02-21 15:05:14 +01:00
parent a14200a75c
commit b5cf16fa74
11 changed files with 7 additions and 13 deletions

View File

@ -29,8 +29,6 @@
#include "config.h"
#include <string.h>
#include <X11/Xlib.h>
#include <X11/extensions/sync.h>
#include "backends/gsm-inhibitor-flag.h"
#include "backends/meta-backend-private.h"

View File

@ -24,6 +24,8 @@
#include <stdint.h>
#include <X11/Xlib.h>
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
#include "backends/meta-backend-private.h"
#include "backends/x11/meta-backend-x11-types.h"

View File

@ -2,8 +2,6 @@
#pragma once
#include <X11/extensions/Xfixes.h>
#include "clutter/clutter-mutter.h"
#include "clutter/clutter.h"
#include "compositor/meta-compositor-view.h"

View File

@ -31,8 +31,6 @@
#pragma once
#include <X11/Xutil.h>
#include "backends/meta-logical-monitor.h"
#include "clutter/clutter.h"
#include "core/stack.h"

View File

@ -24,9 +24,6 @@
#pragma once
#include <X11/Xlib.h>
#include <X11/extensions/XInput.h>
#include <X11/extensions/XInput2.h>
#include <glib.h>
#include "clutter/clutter.h"

View File

@ -20,7 +20,6 @@
#pragma once
#include <glib-object.h>
#include <X11/Xlib.h>
#include "meta/types.h"
#include "meta/prefs.h"

View File

@ -23,8 +23,6 @@
#pragma once
#include <X11/Xlib.h>
#include "clutter/clutter.h"
#include "meta/common.h"
#include "meta/meta-multi-texture.h"

View File

@ -21,6 +21,7 @@
#include <glib-object.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xfixes.h>
#include "meta/common.h"
#include "meta/prefs.h"

View File

@ -20,7 +20,6 @@
#pragma once
#include <glib-object.h>
#include <X11/Xlib.h>
#include "meta/boxes.h"
#include "meta/types.h"

View File

@ -23,6 +23,8 @@
#include "meta/group.h"
#include <X11/Xlib.h>
struct _MetaGroup
{
int refcount;

View File

@ -29,6 +29,8 @@
#pragma once
#include <X11/Xutil.h>
#include "core/window-private.h"
/**