x11: Don't include gdkinternals.h

This commit is contained in:
Benjamin Otte
2021-09-24 21:20:15 +02:00
parent 4e836493cc
commit 47e0539968
22 changed files with 37 additions and 46 deletions

View File

@@ -26,7 +26,6 @@
#include "gdkcairo.h"
#include "gdksurfaceprivate.h"
#include "gdkinternals.h"
#include <X11/Xlib.h>

View File

@@ -278,6 +278,27 @@ gdk_x11_device_xi2_query_state (GdkDevice *device,
free (button_state.mask);
}
static GdkGrabStatus
gdk_x11_convert_grab_status (int status)
{
switch (status)
{
case GrabSuccess:
return GDK_GRAB_SUCCESS;
case AlreadyGrabbed:
return GDK_GRAB_ALREADY_GRABBED;
case GrabInvalidTime:
return GDK_GRAB_INVALID_TIME;
case GrabNotViewable:
return GDK_GRAB_NOT_VIEWABLE;
case GrabFrozen:
return GDK_GRAB_FROZEN;
default:
g_assert_not_reached();
return 0;
}
}
static GdkGrabStatus
gdk_x11_device_xi2_grab (GdkDevice *device,
GdkSurface *surface,
@@ -332,7 +353,7 @@ gdk_x11_device_xi2_grab (GdkDevice *device,
_gdk_x11_display_update_grab_info (display, device, status);
return _gdk_x11_convert_grab_status (status);
return gdk_x11_convert_grab_status (status);
}
static void

View File

@@ -18,7 +18,6 @@
#include "config.h"
#include "gdkx11devicemanager-xi2.h"
#include "gdkinternals.h"
#include "gdkprivate-x11.h"
#include "gdkdisplay-x11.h"

View File

@@ -23,13 +23,13 @@
#include "gdkdeviceprivate.h"
#include "gdkdevicetoolprivate.h"
#include "gdkdisplayprivate.h"
#include "gdkeventsprivate.h"
#include "gdkeventtranslator.h"
#include "gdkkeys-x11.h"
#include "gdkprivate-x11.h"
#include "gdkdisplay-x11.h"
#include "gdkintl.h"
#include "gdkkeysyms.h"
#include "gdkinternals.h"
#include "gdkseatdefaultprivate.h"
#include <X11/Xlib.h>

View File

@@ -29,10 +29,10 @@
#include "gdkasync.h"
#include "gdkdisplay.h"
#include "gdkeventsprivate.h"
#include "gdkeventsource.h"
#include "gdkeventtranslator.h"
#include "gdkframeclockprivate.h"
#include "gdkinternals.h"
#include "gdkdeviceprivate.h"
#include "gdksurfaceprivate.h"
#include "gdkkeysprivate.h"

View File

@@ -25,7 +25,6 @@
#include "gdkdisplayprivate.h"
#include "gdkkeys.h"
#include "gdksurface.h"
#include "gdkinternals.h"
#include "gdkx11devicemanager.h"
#include "gdkx11display.h"
#include "gdkx11screen.h"

View File

@@ -34,11 +34,12 @@
#include "gdkdevice-xi2-private.h"
#include "gdkdisplay-x11.h"
#include "gdkdragprivate.h"
#include "gdkeventsprivate.h"
#include "gdksurfaceprivate.h"
#include "gdkinternals.h"
#include "gdkintl.h"
#include "gdkprivate-x11.h"
#include "gdkscreen-x11.h"
#include "gdkseatprivate.h"
#include "gdkselectioninputstream-x11.h"
#include "gdkselectionoutputstream-x11.h"

View File

@@ -33,7 +33,6 @@
#include "gdkdeviceprivate.h"
#include "gdkdisplay-x11.h"
#include "gdkdragprivate.h"
#include "gdkinternals.h"
#include "gdkintl.h"
#include "gdkprivate-x11.h"
#include "gdkscreen-x11.h"

View File

@@ -19,7 +19,8 @@
#include "gdkeventsource.h"
#include "gdkinternals.h"
#include "gdk/gdkeventsprivate.h"
#include "gdksurface-x11.h"
#include "gdkprivate-x11.h"
#include "gdkdisplay-x11.h"

View File

@@ -20,7 +20,8 @@
#include "gdktypes.h"
#include "gdkdisplay.h"
#include "gdkinternals.h"
#include "gdk/gdkdeviceprivate.h"
#include <X11/Xlib.h>

View File

@@ -22,7 +22,6 @@
#include "gdkx11property.h"
#include <X11/Xatom.h>
#include "gdkinternals.h"
#include "gdkprofilerprivate.h"
#include "gdkintl.h"

View File

@@ -22,7 +22,6 @@
#include "gdkx11property.h"
#include <X11/Xatom.h>
#include "gdkinternals.h"
#include "gdkprofilerprivate.h"
#include "gdkintl.h"

View File

@@ -32,8 +32,6 @@
#include "gdkx11property.h"
#include <X11/Xatom.h>
#include "gdkinternals.h"
#include "gdkintl.h"
#include <cairo-xlib.h>

View File

@@ -36,7 +36,6 @@
#include "gdkglcontextprivate.h"
#include "gdkdisplay-x11.h"
#include "gdksurface.h"
#include "gdkinternals.h"
G_BEGIN_DECLS

View File

@@ -25,7 +25,6 @@
#include "config.h"
#include "gdkdeviceprivate.h"
#include "gdkinternals.h"
#include "gdkintl.h"
#include "gdkasync.h"
#include "gdkdisplay-x11.h"
@@ -67,27 +66,6 @@ _gdk_x11_surfaceing_init (void)
XSetIOErrorHandler (gdk_x_io_error);
}
GdkGrabStatus
_gdk_x11_convert_grab_status (int status)
{
switch (status)
{
case GrabSuccess:
return GDK_GRAB_SUCCESS;
case AlreadyGrabbed:
return GDK_GRAB_ALREADY_GRABBED;
case GrabInvalidTime:
return GDK_GRAB_INVALID_TIME;
case GrabNotViewable:
return GDK_GRAB_NOT_VIEWABLE;
case GrabFrozen:
return GDK_GRAB_FROZEN;
default:
g_assert_not_reached();
return 0;
}
}
/*
* _gdk_x11_surface_grab_check_unmap:
* @surface: a `GdkSurface`

View File

@@ -30,11 +30,13 @@
#define __GDK_PRIVATE_X11_H__
#include "gdkcursor.h"
#include "gdkinternals.h"
#include "gdkx.h"
#include "gdksurface-x11.h"
#include "gdkscreen-x11.h"
#include "gdk/gdkdeviceprivate.h"
#include "gdk/gdkkeysprivate.h"
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/XInput2.h>
@@ -239,8 +241,6 @@ void gdk_x11_surface_set_opacity (GdkSurface *surface,
double opacity);
gboolean gdk_x11_surface_supports_edge_constraints (GdkSurface *surface);
GdkGrabStatus _gdk_x11_convert_grab_status (int status);
cairo_surface_t * _gdk_x11_display_create_bitmap_surface (GdkDisplay *display,
int width,
int height);

View File

@@ -24,7 +24,6 @@
#include "config.h"
#include "gdkinternals.h"
#include "gdkprivate-x11.h"
#include "gdkdisplay-x11.h"
#include "gdkscreen-x11.h"

View File

@@ -31,7 +31,6 @@
#include "gdkpopupprivate.h"
#include "gdktoplevelprivate.h"
#include "gdkdragsurfaceprivate.h"
#include "gdkinternals.h"
#include "gdkdeviceprivate.h"
#include "gdkdevice-xi2-private.h"
#include "gdkframeclockidleprivate.h"
@@ -41,6 +40,8 @@
#include "gdkglcontext-x11.h"
#include "gdkprivate-x11.h"
#include "gdktextureprivate.h"
#include "gdkseatprivate.h"
#include "gdk-private.h"
#include <graphene.h>

View File

@@ -27,7 +27,6 @@
#include "gdksurfaceprivate.h"
#include "gdkx11surface.h"
#include "gdkinternals.h"
#include <X11/Xlib.h>

View File

@@ -26,7 +26,6 @@
#include "gdkvulkancontext-x11.h"
#include "gdkinternals.h"
#include "gdkdisplay-x11.h"
#include "gdksurface-x11.h"

View File

@@ -54,6 +54,8 @@
#include <gdkscreen-x11.h>
#include <gdkprivate-x11.h>
#include "gdkdebug.h"
static int
parse_boolean (char *v)
{

View File

@@ -33,8 +33,6 @@
#include <gdk/x11/gdkdisplay-x11.h>
#include <gdk/x11/gdkscreen-x11.h>
#include <gdkinternals.h>
#include <string.h>
#include <X11/Xlib.h>