Displaying 1 result from an estimated 1 matches for "reversewindow".
Did you mean:
reversewindows
2007 Apr 19
0
[PATCH] Make focusDefaultWindow () take a CompScreen as argument
...le =
@@ -2565,45 +2565,41 @@ getCurrentTimeFromDisplay (CompDisplay *d)
}
void
-focusDefaultWindow (CompDisplay *d)
+focusDefaultWindow (CompScreen *s)
{
- CompScreen *s;
CompWindow *w;
CompWindow *focus = NULL;
- for (s = d->screens; s; s = s->next)
+ for (w = s->reverseWindows; w; w = w->prev)
{
- for (w = s->reverseWindows; w; w = w->prev)
- {
- if (w->type & CompWindowTypeDockMask)
- continue;
+ if (w->type & CompWindowTypeDockMask)
+ continue;
- if ((*s->focusWindow) (w))
+ if ((*s->focusWindow) (w))
+ {
+ if (focu...