Fix meta_window_set_user_time: assertion `!window->override_redirect' failed error messages

This patch adds a check in event_callback () to check whether the
window is override-redirect or not, and avoids unnecessarily calling
meta_window_set_user_time () if it is.

https://bugzilla.gnome.org/show_bug.cgi?id=606158
This commit is contained in:
Nickolas Lloyd 2010-07-27 19:44:42 +00:00 committed by Owen W. Taylor
parent c9ebc0ea25
commit 63f81ed027

View File

@ -1735,7 +1735,8 @@ event_callback (XEvent *event,
}
#endif /* HAVE_SHAPE */
if (window && ((event->type == KeyPress) || (event->type == ButtonPress)))
if (window && !window->override_redirect &&
((event->type == KeyPress) || (event->type == ButtonPress)))
{
if (CurrentTime == display->current_time)
{