Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 6a8e2e0

Browse files
committed
The null X11 resource is None, not a null pointer
`X11/X.h` defines both `XID` (of which the X11 `Window` type is an alias), and the `None` constant which represents the null resource or atom.
1 parent 5e122fe commit 6a8e2e0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libbrowser/src/libbrowser_cef_lnx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool MCCefLinuxBrowser::GetXWindow(Window &r_window)
8080
Window t_window;
8181
t_window = t_browser->GetHost()->GetWindowHandle();
8282

83-
if (t_window == nil)
83+
if (t_window == None)
8484
return false;
8585

8686
r_window = t_window;

revbrowser/src/cefbrowser_lnx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ bool MCCefLinuxBrowser::GetXWindow(Window &r_window)
8888
Window t_window;
8989
t_window = t_browser->GetHost()->GetWindowHandle();
9090

91-
if (t_window == nil)
91+
if (t_window == None)
9292
return false;
9393

9494
r_window = t_window;

0 commit comments

Comments
 (0)