Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@@ -25,16 +25,18 @@ void SimpleHandler::PlatformTitleChange(CefRefPtr<CefBrowser> browser,
// Retrieve the X11 window handle for the browser.
::Window window = browser->GetHost()->GetWindowHandle();
if (window == kNullWindowHandle)
if (window == kNullWindowHandle) {
return;
}
// Retrieve the atoms required by the below XChangeProperty call.
const char* kAtoms[] = {"_NET_WM_NAME", "UTF8_STRING"};
Atom atoms[2];
int result =
XInternAtoms(display, const_cast<char**>(kAtoms), 2, false, atoms);
if (!result)
if (!result) {
NOTREACHED();
}
// Set the window title.
XChangeProperty(display, window, atoms[0], atoms[1], 8, PropModeReplace,