linux: Fix BrowserWindow.setResizable.
This commit is contained in:
parent
af531d685e
commit
400d5cef3f
4 changed files with 88 additions and 35 deletions
22
atom/browser/ui/x/x_window_utils.h
Normal file
22
atom/browser/ui/x/x_window_utils.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Copyright (c) 2014 GitHub, Inc. All rights reserved.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ATOM_BROWSER_UI_X_X_WINDOW_UTILS_H_
|
||||
#define ATOM_BROWSER_UI_X_X_WINDOW_UTILS_H_
|
||||
|
||||
#include <X11/extensions/XInput2.h>
|
||||
#include <X11/extensions/Xrandr.h>
|
||||
#include <X11/Xlib.h>
|
||||
|
||||
namespace atom {
|
||||
|
||||
::Atom GetAtom(const char* name);
|
||||
|
||||
// Sends a message to the x11 window manager, enabling or disabling the |state|
|
||||
// for _NET_WM_STATE.
|
||||
void SetWMSpecState(::Window xwindow, bool enabled, ::Atom state);
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_BROWSER_UI_X_X_WINDOW_UTILS_H_
|
Loading…
Add table
Add a link
Reference in a new issue