diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-07-20 08:06:54 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-07-20 08:06:54 +0000 |
| commit | c517f511000c8ec775f7413527b9e276b7995806 (patch) | |
| tree | d2f5b8661b87b134a0d1f5c74c09527cd6274312 /util/epist/window.cc | |
| parent | b4411cb1ef1c25a287181b570e974545e1010530 (diff) | |
some cleanups and such.
Diffstat (limited to 'util/epist/window.cc')
| -rw-r--r-- | util/epist/window.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/util/epist/window.cc b/util/epist/window.cc index 4027b47f..1d5a219d 100644 --- a/util/epist/window.cc +++ b/util/epist/window.cc @@ -31,12 +31,13 @@ using std::endl; using std::hex; using std::dec; -#include "window.hh" #include "epist.hh" +#include "screen.hh" +#include "window.hh" #include "../../src/XAtom.hh" -XWindow::XWindow(epist *epist, Window window) - : _epist(epist), _xatom(epist->xatom()), _window(window) { +XWindow::XWindow(epist *epist, screen *screen, Window window) + : _epist(epist), _screen(screen), _xatom(epist->xatom()), _window(window) { _unmapped = false; @@ -140,3 +141,9 @@ void XWindow::processEvent(const XEvent &e) { break; } } + + +void XWindow::shade(const bool sh) const { + _xatom->sendClientMessage(_screen->rootWindow(), XAtom::net_wm_state, + _window, (sh ? 1 : 0), XAtom::net_wm_state_shaded); +} |
