Xnest: canonicalize includes: <X11/Xdefs.h>

For cleaner code, make sure every source needing something from Xdefs.h
does explicitly include it (not relying on indirect including)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1394>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-02-15 19:39:49 +01:00 committed by Marge Bot
parent b15f0204b2
commit 737c316a99
21 changed files with 45 additions and 4 deletions

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
#include "misc.h" #include "misc.h"

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTARGS_H #ifndef XNESTARGS_H
#define XNESTARGS_H #define XNESTARGS_H
#include <X11/Xdefs.h>
extern char *xnestDisplayName; extern char *xnestDisplayName;
extern Bool xnestSynchronize; extern Bool xnestSynchronize;
extern Bool xnestFullGeneration; extern Bool xnestFullGeneration;

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "scrnintstr.h" #include "scrnintstr.h"
#include "window.h" #include "window.h"
#include "windowstr.h" #include "windowstr.h"

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTCOLOR_H #ifndef XNESTCOLOR_H
#define XNESTCOLOR_H #define XNESTCOLOR_H
#include <X11/Xdefs.h>
#define DUMB_WINDOW_MANAGERS #define DUMB_WINDOW_MANAGERS
#define MAXCMAPS 1 #define MAXCMAPS 1

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
#include "misc.h" #include "misc.h"

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "screenint.h" #include "screenint.h"
#include "input.h" #include "input.h"
#include "misc.h" #include "misc.h"

View File

@ -18,11 +18,13 @@ is" without express or implied warranty.
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xatom.h> #include <X11/Xatom.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "misc.h"
#include "regionstr.h"
#include <X11/fonts/font.h> #include <X11/fonts/font.h>
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
#include "misc.h"
#include "regionstr.h"
#include "dixfontstr.h" #include "dixfontstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "gcstruct.h" #include "gcstruct.h"
#include "windowstr.h" #include "windowstr.h"
#include "pixmapstr.h" #include "pixmapstr.h"

View File

@ -17,9 +17,11 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "regionstr.h"
#include <X11/fonts/fontstruct.h> #include <X11/fonts/fontstruct.h>
#include "regionstr.h"
#include "gcstruct.h" #include "gcstruct.h"
#include "scrnintstr.h" #include "scrnintstr.h"
#include "windowstr.h" #include "windowstr.h"

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/fonts/fontstruct.h>
#include "dix/screenint_priv.h" #include "dix/screenint_priv.h"
@ -28,7 +30,6 @@ is" without express or implied warranty.
#include "windowstr.h" #include "windowstr.h"
#include "servermd.h" #include "servermd.h"
#include "mi.h" #include "mi.h"
#include <X11/fonts/fontstruct.h>
#include "dixfontstr.h" #include "dixfontstr.h"
#include "Xnest.h" #include "Xnest.h"

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTINIT_H #ifndef XNESTINIT_H
#define XNESTINIT_H #define XNESTINIT_H
#include <X11/Xdefs.h>
extern Bool xnestDoFullGeneration; extern Bool xnestDoFullGeneration;
#endif /* XNESTINIT_H */ #endif /* XNESTINIT_H */

View File

@ -21,8 +21,10 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include <X11/keysym.h> #include <X11/keysym.h>
#include "screenint.h" #include "screenint.h"
#include "inputstr.h" #include "inputstr.h"
#include "misc.h" #include "misc.h"

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "regionstr.h" #include "regionstr.h"
#include "pixmapstr.h" #include "pixmapstr.h"
#include "scrnintstr.h" #include "scrnintstr.h"

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "scrnintstr.h" #include "scrnintstr.h"
#include "dix.h" #include "dix.h"
#include "mi.h" #include "mi.h"

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTSCREEN_H #ifndef XNESTSCREEN_H
#define XNESTSCREEN_H #define XNESTSCREEN_H
#include <X11/Xdefs.h>
extern Window xnestDefaultWindows[MAXSCREENS]; extern Window xnestDefaultWindows[MAXSCREENS];
extern Window xnestScreenSaverWindows[MAXSCREENS]; extern Window xnestScreenSaverWindows[MAXSCREENS];

View File

@ -17,7 +17,9 @@ is" without express or implied warranty.
#endif #endif
#include <X11/X.h> #include <X11/X.h>
#include <X11/Xdefs.h>
#include <X11/Xproto.h> #include <X11/Xproto.h>
#include "gcstruct.h" #include "gcstruct.h"
#include "window.h" #include "window.h"
#include "windowstr.h" #include "windowstr.h"

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTCURSOR_H #ifndef XNESTCURSOR_H
#define XNESTCURSOR_H #define XNESTCURSOR_H
#include <X11/Xdefs.h>
#include "mipointrst.h" #include "mipointrst.h"
typedef struct { typedef struct {

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTFONT_H #ifndef XNESTFONT_H
#define XNESTFONT_H #define XNESTFONT_H
#include <X11/Xdefs.h>
typedef struct { typedef struct {
XFontStruct *font_struct; XFontStruct *font_struct;
} xnestPrivFont; } xnestPrivFont;

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTGC_H #ifndef XNESTGC_H
#define XNESTGC_H #define XNESTGC_H
#include <X11/Xdefs.h>
/* This file uses the GC definition form Xlib.h as XlibGC. */ /* This file uses the GC definition form Xlib.h as XlibGC. */
typedef struct { typedef struct {

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTPIXMAP_H #ifndef XNESTPIXMAP_H
#define XNESTPIXMAP_H #define XNESTPIXMAP_H
#include <X11/Xdefs.h>
extern DevPrivateKeyRec xnestPixmapPrivateKeyRec; extern DevPrivateKeyRec xnestPixmapPrivateKeyRec;
#define xnestPixmapPrivateKey (&xnestPixmapPrivateKeyRec) #define xnestPixmapPrivateKey (&xnestPixmapPrivateKeyRec)

View File

@ -15,6 +15,8 @@ is" without express or implied warranty.
#ifndef XNESTWINDOW_H #ifndef XNESTWINDOW_H
#define XNESTWINDOW_H #define XNESTWINDOW_H
#include <X11/Xdefs.h>
typedef struct { typedef struct {
Window window; Window window;
Window parent; Window parent;