[mutter] Fix meta_window_set_user_time: assertion `!window->override_redirect' failed error messages
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Fix meta_window_set_user_time: assertion `!window->override_redirect' failed error messages
- Date: Wed, 18 Aug 2010 21:22:19 +0000 (UTC)
commit 63f81ed0274525ff562b4952fa4ce4c351f6d1f9
Author: Nickolas Lloyd <ultrageek lloyd gmail com>
Date: Tue Jul 27 19:44:42 2010 +0000
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 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/core/display.c b/src/core/display.c
index 24d2596..9e7f13f 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]