summaryrefslogtreecommitdiff
path: root/dev-qt/qtwebengine/files/qtwebengine-6.7.0-x11-header.patch
blob: 0951f2903dbb819a1d6aaa15fa6810de44d4a383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
May possibly be working for upstream due to transitive headers,
needs more looking into.

Without this:

    gl_display.cc:945:10: error: 'x11' has not been declared
      945 |   return x11::Connection::Get()->GetXlibDisplay();

Likely a regression from [1].

[1] https://github.com/qt/qtwebengine-chromium/commit/f2b407a61bea122d18a012f0049ba193725f0461
--- a/src/3rdparty/chromium/ui/gl/gl_display.cc
+++ b/src/3rdparty/chromium/ui/gl/gl_display.cc
@@ -29,4 +29,8 @@
 #include "ui/gl/gl_surface.h"
 
+#if defined(USE_GLX)
+#include "ui/gfx/x/connection.h"
+#endif
+
 #if BUILDFLAG(IS_OZONE)
 #include "ui/ozone/buildflags.h"