diff options
Diffstat (limited to 'workarounds.c')
-rw-r--r-- | workarounds.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/workarounds.c b/workarounds.c index 3fa308e..94f04fb 100644 --- a/workarounds.c +++ b/workarounds.c @@ -543,7 +543,6 @@ static void workaroundsHandleEvent (CompDisplay *d, XEvent *event) { - CompScreen *s; CompWindow *w; WORKAROUNDS_DISPLAY (d); @@ -623,14 +622,17 @@ workaroundsHandleEvent (CompDisplay *d, updateUrgencyState (w); } } - else if (event->xproperty.atom == d->clientListAtom) { - if (workaroundsGetJavaTaskbarFix (d)) { - for (s = d->screens; s; s = s->next) { - for (w = s->windows; w; w = w->next) { - if (w->managed) { - setWindowState(d,w->state,w->id); - } - } + else if (event->xproperty.atom == d->clientListAtom) + { + if (workaroundsGetJavaTaskbarFix (d)) + { + CompScreen *s = findScreenAtDisplay (d, + event->xproperty.window); + if (s) + { + for (w = s->windows; w; w = w->next) + if (w->managed) + setWindowState(d, w->state, w->id); } } } |