Commit a7abd45a authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Screen.c: initialize RandR only on startup...

... not on reconnect. After the reconnect RRCloseScreen was called twice which caused a double free. This was introduced with 3b06ad51 Fixes ArcticaProject/nx-libs#833
parent 6f80a06f
...@@ -1735,7 +1735,6 @@ N/A ...@@ -1735,7 +1735,6 @@ N/A
#define POSITION_OFFSET (pScreen->myNum * (nxagentOption(Width) + \ #define POSITION_OFFSET (pScreen->myNum * (nxagentOption(Width) + \
nxagentOption(Height)) / 32) nxagentOption(Height)) / 32)
}
/* /*
* Complete the initialization of the RANDR * Complete the initialization of the RANDR
...@@ -1743,6 +1742,7 @@ N/A ...@@ -1743,6 +1742,7 @@ N/A
*/ */
nxagentInitRandRExtension(pScreen); nxagentInitRandRExtension(pScreen);
}
#ifdef TEST #ifdef TEST
nxagentPrintAgentGeometry(NULL, "nxagentOpenScreen:"); nxagentPrintAgentGeometry(NULL, "nxagentOpenScreen:");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment