void StartWaitingForUserInteraction ()
{
// Starts a pasive wait for user interaction.
// To do it, it subscribes the MotionNotify event
// of the main window. This event is unsubscribed when motion is detected
// Keyboard events are already subscribed in RegisterTopWindow
waitingForUserInteraction = true;
toolbarUpdaterRunning = false;
foreach (var win in topLevelWindows) {
win.MotionNotifyEvent += HandleWinMotionNotifyEvent;
win.FocusInEvent += HandleFocusInEventHandler;
}
}