internal override void SetTimer (Timer timer) {
XEventQueue queue = (XEventQueue) MessageQueues [timer.thread];
if (queue == null) {
// This isn't really an error, MS doesn't start the timer if
// it has no assosciated queue at this stage (it will be
// enabled when a window is activated).
unattached_timer_list.Add (timer);
return;
}
queue.timer_list.Add (timer);
WakeupMain ();
}