diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-05-16 18:39:03 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-05-16 18:39:03 +0000 |
| commit | 91a7ca7d206f2ce09a0eb1229db57b67d9bafc67 (patch) | |
| tree | 956616e61e4f80382af9e8b6f88581234019515b /src/XScreen.cc | |
| parent | c17256d745e2730de5458f954af49860c0f4bce7 (diff) | |
added the X classes to the build process though they aren't sued by anything else yet. They now compile too.
Diffstat (limited to 'src/XScreen.cc')
| -rw-r--r-- | src/XScreen.cc | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/XScreen.cc b/src/XScreen.cc index dbc48705..fc53385d 100644 --- a/src/XScreen.cc +++ b/src/XScreen.cc @@ -19,11 +19,13 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. +#include <X11/Xutil.h> #include "XScreen.h" +#include "XDisplay.h" #include "Geometry.h" -XScreen::XScreen(const Display *display, const unsigned int number) { - _display = display; +XScreen::XScreen(const XDisplay *display, const unsigned int number) { + _display = display->_display; _number = number; _root = RootWindow(_display, _number); @@ -33,6 +35,10 @@ XScreen::XScreen(const Display *display, const unsigned int number) { } +XScreen::~XScreen() { +} + + /* * This sets up the _depth, _visual, and _colormap properties. */ @@ -58,7 +64,7 @@ void XScreen::setColorData() { } XFree(vinfo_return); } - if (visual) + if (_visual) _colormap = XCreateColormap(_display, _root, _visual, AllocNone); else { _visual = DefaultVisual(_display, _number); |
