From 765633b18b47501111fa69ed940721a854dc835a Mon Sep 17 00:00:00 2001 From: Aaron Plattner Date: Wed, 6 Aug 2008 16:46:39 -0700 Subject: [PATCH] Handle sync alarm events on screens other than the last. --- src/event.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/event.c b/src/event.c index 60896b6..2466ad7 100644 --- a/src/event.c +++ b/src/event.c @@ -2279,12 +2279,16 @@ handleEvent (CompDisplay *d, w = NULL; for (s = d->screens; s; s = s->next) + { for (w = s->windows; w; w = w->next) + { if (w->syncAlarm == sa->alarm) - break; - - if (w) - handleSyncAlarm (w); + { + handleSyncAlarm(w); + return; + } + } + } } break; } -- 1.5.4.5