|
@@ -19,13 +19,6 @@
|
|
|
|
|
|
namespace electron {
|
|
|
|
|
|
-void SetWMSpecState(x11::Window window, bool enabled, x11::Atom state) {
|
|
|
- ui::SendClientMessage(
|
|
|
- window, ui::GetX11RootWindow(), x11::GetAtom("_NET_WM_STATE"),
|
|
|
- {static_cast<uint32_t>(enabled ? 1 : 0), static_cast<uint32_t>(state),
|
|
|
- static_cast<uint32_t>(x11::Window::None), 1, 0});
|
|
|
-}
|
|
|
-
|
|
|
void SetWindowType(x11::Window window, const std::string& type) {
|
|
|
std::string type_prefix = "_NET_WM_WINDOW_TYPE_";
|
|
|
std::string window_type_str = type_prefix + base::ToUpperASCII(type);
|