dri2: declare variables where needed in DRI2ConfigNotify()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2026-02-06 17:49:57 +01:00
committed by Enrico Weigelt
parent 5bbb0201f4
commit 03e239a823

View File

@@ -1355,12 +1355,11 @@ DRI2ConfigNotify(WindowPtr pWin, int x, int y, int w, int h, int bw,
ScreenPtr pScreen = pDraw->pScreen; ScreenPtr pScreen = pDraw->pScreen;
DRI2ScreenPtr ds = DRI2GetScreen(pScreen); DRI2ScreenPtr ds = DRI2GetScreen(pScreen);
DRI2DrawablePtr dd = DRI2GetDrawable(pDraw); DRI2DrawablePtr dd = DRI2GetDrawable(pDraw);
int ret;
if (ds->ConfigNotify) { if (ds->ConfigNotify) {
pScreen->ConfigNotify = ds->ConfigNotify; pScreen->ConfigNotify = ds->ConfigNotify;
ret = (*pScreen->ConfigNotify) (pWin, x, y, w, h, bw, pSib); int ret = pScreen->ConfigNotify(pWin, x, y, w, h, bw, pSib);
ds->ConfigNotify = pScreen->ConfigNotify; ds->ConfigNotify = pScreen->ConfigNotify;
pScreen->ConfigNotify = DRI2ConfigNotify; pScreen->ConfigNotify = DRI2ConfigNotify;