diff options
author | Dave Airlie <airlied@redhat.com> | 2011-03-09 15:01:20 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-03-10 11:01:09 +1000 |
commit | 0bccfcc97b2300b83aa4693454c27ac87f23f221 (patch) | |
tree | 162e2a2b41ad7e52396d2aa287f470ec7efa35b9 /dix/window.c | |
parent | 5a94934487ea477947e24dcd4720b7cde77d3d2f (diff) |
panoramiX: convert 0->panoramiXNumScreens loops to macro (v3)
This just uses the FOR_NSCREENS macro instead.
v2: remove some of the 1->x loops.
v3: drop the 1->0 loop, will rework later.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'dix/window.c')
-rw-r--r-- | dix/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/window.c b/dix/window.c index 9be70649a..3668370b3 100644 --- a/dix/window.c +++ b/dix/window.c @@ -3067,7 +3067,7 @@ SendVisibilityNotify(WindowPtr pWin) switch(visibility) { case VisibilityUnobscured: - for(i = 0; i < PanoramiXNumScreens; i++) { + FOR_NSCREENS(i) { if(i == Scrnum) continue; rc = dixLookupWindow(&pWin2, win->info[i].id, serverClient, @@ -3089,7 +3089,7 @@ SendVisibilityNotify(WindowPtr pWin) } break; case VisibilityFullyObscured: - for(i = 0; i < PanoramiXNumScreens; i++) { + FOR_NSCREENS(i) { if(i == Scrnum) continue; rc = dixLookupWindow(&pWin2, win->info[i].id, serverClient, |