X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fwidget.cc;h=07122bc645a2b9237dbd0f0b9d8d8e5dd06ccbcd;hb=5a139f7263e33b499836f5df9ac37400e02c32f9;hp=f303c3e44428aee28dd167c2b4aa982dcd25a29e;hpb=723739dafe91a156fef527f3b53a483195695cf1;p=chaz%2Fopenbox diff --git a/otk/widget.cc b/otk/widget.cc index f303c3e4..07122bc6 100644 --- a/otk/widget.cc +++ b/otk/widget.cc @@ -70,7 +70,7 @@ OtkWidget::~OtkWidget() void OtkWidget::create(void) { const ScreenInfo *scr_info = otk::OBDisplay::screenInfo(_screen); - Window p_window = _parent ? _parent->window() : scr_info->getRootWindow(); + Window p_window = _parent ? _parent->window() : scr_info->rootWindow(); _rect.setRect(0, 0, 1, 1); // just some initial values @@ -78,7 +78,7 @@ void OtkWidget::create(void) unsigned long create_mask = CWBackPixmap | CWBorderPixel | CWEventMask; attrib_create.background_pixmap = None; - attrib_create.colormap = scr_info->getColormap(); + attrib_create.colormap = scr_info->colormap(); attrib_create.event_mask = ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | ExposureMask | StructureNotifyMask; @@ -89,8 +89,8 @@ void OtkWidget::create(void) _window = XCreateWindow(otk::OBDisplay::display, p_window, _rect.x(), _rect.y(), _rect.width(), _rect.height(), 0, - scr_info->getDepth(), InputOutput, - scr_info->getVisual(), create_mask, &attrib_create); + scr_info->depth(), InputOutput, + scr_info->visual(), create_mask, &attrib_create); _ignore_config++; }