panoramix: replace FOR_NSCREENS() by FOR_NSCREENS_BACKWARD(i)

FOR_NSCREENS() is just alias for FOR_NSCREENS_BACKWARD(). In many cases
it really matters that we're going backwards and the last iteration visited
the screen #0, and that one is panoramix-wrapped.

Thus directly calling FOR_NSCREENS_BACKWARD() here and dropping the alias.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-05-20 13:38:35 +02:00
parent 7aa1f121e4
commit aeb7b424d5
9 changed files with 22 additions and 23 deletions

View File

@@ -707,7 +707,7 @@ PanoramiXCompositeNameWindowPixmap(ClientPtr client)
newPix->u.pix.shared = FALSE;
panoramix_setup_ids(newPix, client, stuff->pixmap);
FOR_NSCREENS(i) {
FOR_NSCREENS_BACKWARD(i) {
rc = dixLookupResourceByType((void **) &pWin, win->info[i].id,
X11_RESTYPE_WINDOW, client,
DixGetAttrAccess);
@@ -820,7 +820,7 @@ PanoramiXCompositeGetOverlayWindow(ClientPtr client)
}
if (overlayWin) {
FOR_NSCREENS(i) {
FOR_NSCREENS_BACKWARD(i) {
cs = GetCompScreen(screenInfo.screens[i]);
overlayWin->info[i].id = cs->pOverlayWin->drawable.id;
}