# include <stdio.h>
#endif // HAVE_STDIO_H
+#ifdef HAVE_UNISTD_H
+# include <sys/types.h>
+# include <unistd.h>
+#endif // HAVE_UNISTD_H
+
#include "gettext.h"
#define _(str) gettext(str)
}
printf(_("Managing screen %d: visual 0x%lx, depth %d\n"),
_number, XVisualIDFromVisual(_info->getVisual()), _info->getDepth());
-#ifdef HAVE_GETPID
Openbox::instance->property()->set(_info->getRootWindow(),
otk::OBProperty::openbox_pid,
otk::OBProperty::Atom_Cardinal,
(unsigned long) getpid());
-#endif // HAVE_GETPID
// set the mouse cursor for the root window (the default cursor)
XDefineCursor(otk::OBDisplay::display, _info->getRootWindow(),
_image_control->installRootColormap();
_root_cmap_installed = True;
+ _style.setImageControl(_image_control);
+
// Set the netwm atoms for geomtery and viewport
unsigned long geometry[] = { _size.x(),
}
+void OBScreen::loadStyle(const otk::Configuration &config)
+{
+ _style.load(config);
+ if (Openbox::instance->state() == Openbox::State_Starting)
+ return;
+
+ // XXX: make stuff redraw!
+}
+
+
}