Commit 9e5fa633913ef952ca4ef5312fe396bcfc885321

Revert "Added a check that X11 timestamp goes forward only."

In some cases we might get an invalid timestamp that is far away in
the future, so remembering it will break all consequent X calls that
require a timestamp because it just contains junk (for example
clipboard will stop working). This happens with XIM+SCIM pair -
whenever we start input method and type something to the widget, we
get a XKeyPress event with a commited string, however the 'serial' and
'time' members of the XEvent structure are not initialized (according
to valgrind) and contain junk.

This reverts commit 2ed015b8a0ffad63f0f59b0e2255057f416895fb.

Reviewed-By: Brad
  
31423142#ifdef ALIEN_DEBUG
31433143 //qDebug() << "QApplication::x11ProcessEvent:" << event->type;
31443144#endif
3145 Time time = 0, userTime = 0;
31463145 switch (event->type) {
31473146 case ButtonPress:
31483147 pressed_window = event->xbutton.window;
3149 userTime = event->xbutton.time;
3148 X11->userTime = event->xbutton.time;
31503149 // fallthrough intended
31513150 case ButtonRelease:
3152 time = event->xbutton.time;
3151 X11->time = event->xbutton.time;
31533152 break;
31543153 case MotionNotify:
3155 time = event->xmotion.time;
3154 X11->time = event->xmotion.time;
31563155 break;
31573156 case XKeyPress:
3158 userTime = event->xkey.time;
3157 X11->userTime = event->xkey.time;
31593158 // fallthrough intended
31603159 case XKeyRelease:
3161 time = event->xkey.time;
3160 X11->time = event->xkey.time;
31623161 break;
31633162 case PropertyNotify:
3164 time = event->xproperty.time;
3163 X11->time = event->xproperty.time;
31653164 break;
31663165 case EnterNotify:
31673166 case LeaveNotify:
3168 time = event->xcrossing.time;
3167 X11->time = event->xcrossing.time;
31693168 break;
31703169 case SelectionClear:
3171 time = event->xselectionclear.time;
3170 X11->time = event->xselectionclear.time;
31723171 break;
31733172 default:
3174#ifndef QT_NO_XFIXES
3175 if (X11->use_xfixes && event->type == (X11->xfixes_eventbase + XFixesSelectionNotify)) {
3176 XFixesSelectionNotifyEvent *req =
3177 reinterpret_cast<XFixesSelectionNotifyEvent *>(event);
3178 time = req->selection_timestamp;
3179 }
3180#endif
31813173 break;
31823174 }
3183 if (time > X11->time)
3184 X11->time = time;
3185 if (userTime > X11->userTime)
3186 X11->userTime = userTime;
3175#ifndef QT_NO_XFIXES
3176 if (X11->use_xfixes && event->type == (X11->xfixes_eventbase + XFixesSelectionNotify)) {
3177 XFixesSelectionNotifyEvent *req =
3178 reinterpret_cast<XFixesSelectionNotifyEvent *>(event);
3179 X11->time = req->selection_timestamp;
3180 }
3181#endif
31873182
31883183 QETWidget *widget = (QETWidget*)QWidget::find((WId)event->xany.window);
31893184