Add "type" option to change window type

This commit is contained in:
Cheng Zhao 2015-02-11 12:12:22 +08:00
parent 6b37f30bd6
commit f0924df68a
5 changed files with 29 additions and 0 deletions

View file

@ -9,6 +9,8 @@
#include <X11/extensions/Xrandr.h>
#include <X11/Xlib.h>
#include <string>
namespace atom {
::Atom GetAtom(const char* name);
@ -17,6 +19,9 @@ namespace atom {
// for _NET_WM_STATE.
void SetWMSpecState(::Window xwindow, bool enabled, ::Atom state);
// Sets the _NET_WM_WINDOW_TYPE of window.
void SetWindowType(::Window xwindow, const std::string& type);
} // namespace atom
#endif // ATOM_BROWSER_UI_X_X_WINDOW_UTILS_H_