#include "i18n.h"
#include "BaseDisplay.h"
-#include "LinkedList.h"
#include "Timer.h"
#include <algorithm>
XSetErrorHandler((XErrorHandler) handleXErrors);
screenInfoList.reserve(ScreenCount(display));
- for (int i = 0; i < number_of_screens; i++)
- screenInfoList.push_back(new ScreenInfo(*this, i));
+ for (unsigned int s = 0; s < number_of_screens; s++)
+ screenInfoList.push_back(new ScreenInfo(*this, s));
#ifndef NOCLOBBER
NumLockMask = ScrollLockMask = 0;
void BaseDisplay::ungrab(void) {
if (! --server_grabs)
XUngrabServer(display);
-
- if (server_grabs < 0) server_grabs = 0;
}
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);
}