removed a redundant var from BaseDisplay.
Changelog for Openbox:
1.2.0:
+ * new version of bsetroot ported from blackbox cvs
+ with intent to support Eterm/Esetroot. (Sean Perry)
+
+ * make bsetroot behave properly with Eterm/Esetroot. (Ben Jansens)
+
+ * new version of bsetbg. (Timothy King)
+
+ * fix the 'wrong window move' bug displayed by apps
+ such as bbkeys. (Sean Perry)
+
* fix bug when removing and then readding a titlebar
button witout restarted (by reconfiguring). (Ben Jansens)
* make image dithering value load correctly. (Ben Jansens)
- * fix segfault with multiple screens. (Shaleh Perry)
+ * fix segfault with multiple screens. (Sean Perry)
1.1.0:
* improved focused window logic to remove a segfault
::exit(2);
}
- number_of_screens = ScreenCount(display);
display_name = XDisplayName(dpy_name);
#ifdef SHAPE
XSetErrorHandler((XErrorHandler) handleXErrors);
- screenInfoList.reserve(ScreenCount(display));
- for (unsigned int s = 0; s < number_of_screens; s++)
+ screenInfoList.reserve(numberOfScreens());
+ for (unsigned int s = 0; s < numberOfScreens(); s++)
screenInfoList.push_back(new ScreenInfo(*this, s));
#ifndef NOCLOBBER
TimerList timerList;
char *display_name, *application_name;
- unsigned int number_of_screens, server_grabs, colors_per_channel;
+ unsigned int server_grabs, colors_per_channel;
protected:
inline const char *getApplicationName() const
{ return (const char *) application_name; }
- inline const unsigned int getNumberOfScreens() const
- { return number_of_screens; }
+ inline const unsigned int numberOfScreens() const
+ { return ScreenCount(display); }
inline const int &getShapeEventBase() const
{ return shape.event_basep; }
openbox_pid = XInternAtom(getXDisplay(), "_BLACKBOX_PID", False);
#endif // HAVE_GETPID
- for (unsigned int s = 0; s < getNumberOfScreens(); s++) {
+ for (unsigned int s = 0; s < numberOfScreens(); s++) {
BScreen *screen = new BScreen(*this, s, config);
if (! screen->isScreenManaged()) {