treewide: fix misleading firstScreen variable naming to masterScreen

Follow-up on renaming dixGetFirstScreenPtr() to dixGetMasterScreen():
also rename the target variables for correct technical terminology.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-11 17:28:48 +02:00
committed by Enrico Weigelt
parent b0ffa7b286
commit 358f76f2ad
19 changed files with 201 additions and 209 deletions

View File

@@ -257,8 +257,8 @@ winRestoreModeKeyStates(void)
/* Only process events if the rootwindow is mapped. The keyboard events
* will cause segfaults otherwise */
ScreenPtr firstScreen = dixGetMasterScreen();
if (firstScreen->root && firstScreen->root->mapped == FALSE)
ScreenPtr masterScreen = dixGetMasterScreen();
if (masterScreen->root && masterScreen->root->mapped == FALSE)
processEvents = FALSE;
/* Force to process all pending events in the mi event queue */

View File

@@ -58,9 +58,7 @@ winMsgWindowProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
has set the DE_TERMINATE flag so exits the msg dispatch loop.
*/
{
ScreenPtr pScreen = dixGetMasterScreen();
winScreenPriv(pScreen);
winScreenPriv(dixGetMasterScreen());
PostMessage(pScreenPriv->hwndScreen, WM_GIVEUP, 0, 0);
}