/* we must not use CurrentTime (ICCCM), so try to use GetTickCount instead */
/* FIXME: this is not entirely correct */
- XSetInputFocus( display, data->whole_window, RevertToParent,
- GetTickCount() - EVENT_x11_time_to_win32_time(0));
+ if (data->managed)
+ XSetInputFocus( display, data->whole_window, RevertToParent,
+ GetTickCount() - EVENT_x11_time_to_win32_time(0));
+ else
+ XSetInputFocus( display, data->whole_window, RevertToParent,
+ GetMessageTime() - EVENT_x11_time_to_win32_time(0));
}
wine_tsx11_unlock();
}