Files
Marshall Greenblatt f922057255 linux: cefclient: Fix GTK windows with Wayland (see #3687)
- Fail at startup when --use-native is used with Wayland
  (unsupported, see #2804).
- Remove X11 runtime dependencies from the OSR path.
- Match the GDK backend to the Ozone platform.
- Keep GDK OpenGL enabled with OSR by presetting GDK_GL (see
  https://crrev.com/7c29ce9003d87).
- Share IsRunningOnWayland() between cefclient and ceftests and
  match Chromium detection logic.
2026-10-09 15:46:19 -04:00

21 lines
714 B
C++

// Copyright (c) 2026 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#ifndef CEF_TESTS_SHARED_BROWSER_UTIL_LINUX_H_
#define CEF_TESTS_SHARED_BROWSER_UTIL_LINUX_H_
#pragma once
#include "include/cef_command_line.h"
namespace client {
// Returns true if Chromium will select the Wayland Ozone platform for the
// browser process with |command_line|. Mirrors the selection logic in
// ui/linux/display_server_utils.cc. Safe to call before CefInitialize.
bool IsRunningOnWayland(CefRefPtr<CefCommandLine> command_line);
} // namespace client
#endif // CEF_TESTS_SHARED_BROWSER_UTIL_LINUX_H_