From 63f81ed0274525ff562b4952fa4ce4c351f6d1f9 Mon Sep 17 00:00:00 2001 From: Nickolas Lloyd Date: Tue, 27 Jul 2010 19:44:42 +0000 Subject: [PATCH] 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 --- src/core/display.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/display.c b/src/core/display.c index 24d25966b..9e7f13fa1 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -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) {