# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/xorg-server/hotfix-misavescreen.patch # Copyright (C) 2024 - 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- b/hw/vfb/InitOutput.c +++ a/hw/vfb/InitOutput.c @@ -461,6 +461,12 @@ } } +static Bool +vfbSaveScreen(ScreenPtr pScreen, int on) +{ + return TRUE; +} + #ifdef HAVE_MMAP /* this flushes any changes to the screens out to the mmapped file */ @@ -929,6 +935,8 @@ return FALSE; pScreen->InstallColormap = vfbInstallColormap; + + pScreen->SaveScreen = vfbSaveScreen; pScreen->StoreColors = vfbStoreColors; miDCInitialize(pScreen, &vfbPointerCursorFuncs); --- xorg-server-21.1.11/mi/miscrinit.c.vanilla 2024-03-10 12:50:25.594267854 +0100 +++ xorg-server-21.1.11/mi/miscrinit.c 2024-03-10 12:50:34.373268307 +0100 @@ -124,12 +124,6 @@ return ((*pScreen->DestroyPixmap) ((PixmapPtr) pScreen->devPrivate)); } -static Bool -miSaveScreen(ScreenPtr pScreen, int on) -{ - return TRUE; -} - void miSourceValidate(DrawablePtr pDrawable, int x, int y, int w, int h, unsigned int subWindowMode) @@ -256,7 +250,6 @@ } /* else CloseScreen */ /* QueryBestSize */ - pScreen->SaveScreen = miSaveScreen; /* GetImage, GetSpans */ pScreen->SourceValidate = miSourceValidate; /* CreateWindow, DestroyWindow, PositionWindow, ChangeWindowAttributes */