Xext: panoramix: cache screen pointer

locally cache the screen pointer in local variable.
follow-up commits will use a generic helper function for retrieving it.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-09-03 16:16:51 +02:00 committed by Enrico Weigelt
parent 0d152c44f0
commit 3880670da1

View File

@ -982,10 +982,12 @@ ProcPanoramiXGetScreenSize(ClientPtr client)
if (rc != Success)
return rc;
ScreenPtr pScreen = screenInfo.screens[stuff->screen];
xPanoramiXGetScreenSizeReply reply = {
/* screen dimensions */
.width = screenInfo.screens[stuff->screen]->width,
.height = screenInfo.screens[stuff->screen]->height,
.width = pScreen->width,
.height = pScreen->height,
.window = stuff->window,
.screen = stuff->screen
};