summaryrefslogtreecommitdiff
path: root/chromium/ui/gfx/x/x11.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/gfx/x/x11.h')
-rw-r--r--chromium/ui/gfx/x/x11.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/chromium/ui/gfx/x/x11.h b/chromium/ui/gfx/x/x11.h
index b163f788d98..2cae7c5b3ee 100644
--- a/chromium/ui/gfx/x/x11.h
+++ b/chromium/ui/gfx/x/x11.h
@@ -31,11 +31,8 @@ extern "C" {
#include <X11/extensions/XShm.h>
#include <X11/extensions/XTest.h>
#include <X11/extensions/Xfixes.h>
-#include <X11/extensions/Xrandr.h>
#include <X11/extensions/Xrender.h>
#include <X11/extensions/record.h>
-#include <X11/extensions/scrnsaver.h>
-#include <X11/extensions/shape.h>
#include <X11/extensions/sync.h>
// Define XK_xxx before the #include of <X11/keysym.h> so that <X11/keysym.h>
@@ -76,6 +73,9 @@ extern "C" {
#include <X11/Sunkeysym.h>
#include <X11/XF86keysym.h>
#include <X11/keysym.h>
+}
+
+#include "ui/gfx/x/connection.h"
// These commonly used names are undefined and if necessary recreated
// in the x11 namespace below. This is the main purpose of this header
@@ -97,14 +97,13 @@ extern "C" {
#undef DeviceAdded // Defined by X11/extensions/XI.h to 0
#undef DeviceMode // Defined by X11/extensions/XI.h to 1
#undef DeviceRemoved // Defined by X11/extensions/XI.h to 1
-#undef FocusIn // Defined by X.h to 9
-#undef FocusOut // Defined by X.h to 10
-#undef None // Defined by X11/X.h to 0L
-#undef True // Defined by X11/Xlib.h to 1
-#undef False // Defined by X11/Xlib.h to 0
-#undef CurrentTime // Defined by X11/X.h to 0L
-#undef Success // Defined by X11/X.h to 0
-}
+#undef FocusIn // Defined by X.h to 9
+#undef FocusOut // Defined by X.h to 10
+#undef None // Defined by X11/X.h to 0L
+#undef True // Defined by X11/Xlib.h to 1
+#undef False // Defined by X11/Xlib.h to 0
+#undef CurrentTime // Defined by X11/X.h to 0L
+#undef Success // Defined by X11/X.h to 0
// The x11 namespace allows to scope X11 constants and types that
// would be problematic at the default preprocessor level.