[mutter/override-redirect-exclusion: 8/8] Fix shadowing problem breaking MetaStackTracker
- From: Owen Taylor <otaylor src gnome org>
- To: svn-commits-list gnome org
- Subject: [mutter/override-redirect-exclusion: 8/8] Fix shadowing problem breaking MetaStackTracker
- Date: Wed, 17 Jun 2009 14:26:06 -0400 (EDT)
commit eed2a2d3248e1d8762244b8a5c9e48d420709069
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Jun 17 14:22:24 2009 -0400
Fix shadowing problem breaking MetaStackTracker
A variable shadowing problem introduced in cleanup was causing
queued elements to be removed too early.
http://bugzilla.gnome.org/show_bug.cgi?id=585984
src/core/stack-tracker.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/core/stack-tracker.c b/src/core/stack-tracker.c
index 98673cb..1c6cdca 100644
--- a/src/core/stack-tracker.c
+++ b/src/core/stack-tracker.c
@@ -515,12 +515,12 @@ stack_tracker_event_received (MetaStackTracker *tracker,
while (tracker->queued_requests->head)
{
- MetaStackOp *op = tracker->queued_requests->head->data;
- if (op->any.serial > op->any.serial)
+ MetaStackOp *queued_op = tracker->queued_requests->head->data;
+ if (queued_op->any.serial > op->any.serial)
break;
g_queue_pop_head (tracker->queued_requests);
- meta_stack_op_free (op);
+ meta_stack_op_free (queued_op);
}
if (tracker->predicted_stack)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]