From 8445ff6d0ce6318a759ec46d8ca273b74d2bba03 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 14 Nov 2025 16:56:46 +0100 Subject: [PATCH] WIP: Xnest --- hw/xnest/Display.c | 10 +--------- hw/xnest/Init.c | 6 ------ hw/xnest/Init.h | 2 -- hw/xnest/Screen.c | 10 ---------- 4 files changed, 1 insertion(+), 27 deletions(-) diff --git a/hw/xnest/Display.c b/hw/xnest/Display.c index fb09b6d42b..e9804a1c1d 100644 --- a/hw/xnest/Display.c +++ b/hw/xnest/Display.c @@ -31,7 +31,6 @@ is" without express or implied warranty. #include "xnest-xcb.h" #include "Display.h" -#include "Init.h" #include "Args.h" #include "icon" @@ -50,9 +49,6 @@ xnestOpenDisplay(int argc, char *argv[]) { int i; - if (!xnestDoFullGeneration) - return; - xnestCloseDisplay(); if (!xnest_upstream_setup(xnestDisplayName)) @@ -130,13 +126,9 @@ xnestOpenDisplay(int argc, char *argv[]) void xnestCloseDisplay(void) { - if (!xnestDoFullGeneration || !xnestUpstreamInfo.conn) + if (!xnestUpstreamInfo.conn) return; - /* - If xnestDoFullGeneration all x resources will be destroyed upon closing - the display connection. There is no need to generate extra protocol. - */ free(xnestVisualMap); xnestVisualMap = NULL; xnestNumVisualMap = 0; diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c index bb55e3f662..be3fbb7159 100644 --- a/hw/xnest/Init.c +++ b/hw/xnest/Init.c @@ -42,7 +42,6 @@ is" without express or implied warranty. #include "Keyboard.h" #include "Handlers.h" #include "Events.h" -#include "Init.h" #include "Args.h" #include "Drawable.h" #include "XNGC.h" @@ -51,8 +50,6 @@ is" without express or implied warranty. #include "dpmsproc.h" #endif -Bool xnestDoFullGeneration = TRUE; - /* Xnest doesn't support GLX yet, so we don't link it, but still have satisfy DIX's symbol requirements */ #ifdef GLXEXT @@ -108,8 +105,6 @@ InitOutput(int argc, char *argv[]) AddScreen(xnestOpenScreen, argc, argv); xnestNumScreens = screenInfo.numScreens; - - xnestDoFullGeneration = FALSE; } static void @@ -150,7 +145,6 @@ CloseInput(void) void ddxGiveUp(enum ExitCode error) { - xnestDoFullGeneration = TRUE; xnestCloseDisplay(); } diff --git a/hw/xnest/Init.h b/hw/xnest/Init.h index 0dc1439043..979ca991ef 100644 --- a/hw/xnest/Init.h +++ b/hw/xnest/Init.h @@ -17,6 +17,4 @@ is" without express or implied warranty. #include -extern Bool xnestDoFullGeneration; - #endif /* XNESTINIT_H */ diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index c38a538a30..40297fe0ea 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -41,7 +41,6 @@ is" without express or implied warranty. #include "Color.h" #include "XNCursor.h" #include "Events.h" -#include "Init.h" #include "mipointer.h" #include "Args.h" #include "mipointrst.h" @@ -403,8 +402,6 @@ breakout: #define POSITION_OFFSET (pScreen->myNum * (xnestGeometry.width + xnestGeometry.height) / 32) - if (xnestDoFullGeneration) { - xcb_params_cw_t attributes = { .back_pixel = xnestUpstreamInfo.screenInfo->white_pixel, .event_mask = xnestEventMask, @@ -506,7 +503,6 @@ breakout: xnestUpstreamInfo.screenInfo->root_visual, valuemask, &attributes); - } if (!xnestCreateDefaultColormap(pScreen)) return FALSE; @@ -524,11 +520,5 @@ xnestCloseScreen(ScreenPtr pScreen) free(pScreen->allowedDepths); free(pScreen->visuals); miScreenClose(pScreen); - - /* - If xnestDoFullGeneration all x resources will be destroyed upon closing - the display connection. There is no need to generate extra protocol. - */ - return TRUE; }