mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-01 22:03:09 +00:00
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>
This commit is contained in:
parent
5a94934487
commit
0bccfcc97b
7 changed files with 17 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue