Changelog for Openbox:
1.2.0:
- * make image dithering value load correctly
+ * more focus code changes. also fixes a segfault from
+ last round of focus changes. (Ben Jansens)
+
+ * make image dithering value load correctly. (Ben Jansens)
+
+ * fix segfault with multiple screens. (Shaleh Perry)
1.1.0:
* improved focused window logic to remove a segfault
void BaseDisplay::addTimer(BTimer *timer) {
ASSERT(timer != (BTimer *) 0);
- printf("ADDING TIMER\n");
TimerList::iterator it;
for (it = timerList.begin(); it != timerList.end(); ++it) {
void BaseDisplay::removeTimer(BTimer *timer) {
- printf("REMOVING TIMER\n");
timerList.remove(timer);
}
slit = NULL;
#endif // SLIT
toolbar = NULL;
+ current_workspace = (Workspace *) 0;
#ifdef HAVE_GETPID
pid_t bpid = getpid();
void Toolbar::redrawWindowLabel(Bool redraw) {
OpenboxWindow *foc = screen.getOpenbox().focusedWindow();
- if (foc != (OpenboxWindow *) 0) {
+ if (foc == (OpenboxWindow *) 0) {
+ XClearWindow(display, frame.window_label);
+ } else {
if (redraw)
XClearWindow(display, frame.window_label);
else
XDrawString(display, frame.window_label, style->w_text_gc, dx,
(style->font->ascent + 1), *foc->getTitle(), dlen);
- } else {
- XClearWindow(display, frame.window_label);
}
}
resource.titlebar_layout = NULL;
resource.auto_raise_delay.tv_sec = resource.auto_raise_delay.tv_usec = 0;
+ focused_screen = (BScreen *) 0;
masked_window = NULL;
masked = None;