Skip to content

Commit 2d118be

Browse files
linesightclaude
andcommitted
Fix X11/CEF 'Status' typedef conflict in x11.h on Linux
X11/Xlib.h defines 'Status' (typedef int Status) which conflicts with CefURLRequest::Status when X11 headers are processed before CEF headers. Include cef_urlrequest.h and cef_browser.h before the X11/GTK headers in x11.h so CEF's headers are processed while the namespace is still clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent ccda5ae commit 2d118be

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/client_handler/x11.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,17 @@
44

55
#pragma once
66

7+
// CEF headers must come before X11/GTK headers: X11/Xlib.h defines 'Status'
8+
// (typedef int Status) which conflicts with CefURLRequest::Status typedef.
9+
// Pre-including cef_urlrequest.h ensures it is processed first.
10+
#include "include/cef_urlrequest.h"
11+
#include "include/cef_browser.h"
12+
713
#include <X11/Xlib.h>
814
#include <gtk/gtk.h>
915
#include <gtk/gtkx.h>
1016
#include <gdk/gdkx.h>
1117

12-
#include "include/cef_browser.h"
13-
1418
void InstallX11ErrorHandlers();
1519
void SetX11WindowBounds(CefRefPtr<CefBrowser> browser,
1620
int x, int y, int width, int height);

0 commit comments

Comments
 (0)