mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
fixup! 5052035: [X11] Change AtomCache from a singleton to owned by Connection
This commit is contained in:
@@ -28,7 +28,8 @@ void SetWMSpecState(x11::Window window, bool enabled, x11::Atom state) {
|
||||
|
||||
void SetWindowType(x11::Window window, const std::string& type) {
|
||||
std::string type_prefix = "_NET_WM_WINDOW_TYPE_";
|
||||
x11::Atom window_type = x11::GetAtom(type_prefix + base::ToUpperASCII(type));
|
||||
std::string window_type_str = type_prefix + base::ToUpperASCII(type);
|
||||
x11::Atom window_type = x11::GetAtom(window_type_str.c_str());
|
||||
auto* connection = x11::Connection::Get();
|
||||
connection->SetProperty(window, x11::GetAtom("_NET_WM_WINDOW_TYPE"),
|
||||
x11::Atom::ATOM, window_type);
|
||||
|
||||
Reference in New Issue
Block a user