From 1ca0b9e8662d0dee4b24adb5ffcfd9f4ea5782ed Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 24 May 2024 18:40:45 -0600 Subject: [PATCH] Update Client.cpp --- libs/rm2fb/Client.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/rm2fb/Client.cpp b/libs/rm2fb/Client.cpp index c8d3bb4..cc5c8b4 100644 --- a/libs/rm2fb/Client.cpp +++ b/libs/rm2fb/Client.cpp @@ -118,7 +118,11 @@ __libc_start_main(int (*_main)(int, char**, char**), setenv("RM2FB_SHIM", "1", true); setenv("RM2STUFF_RM2FB", "1", true); - setenv("RM2FB_ACTIVE", "1", true); + if (getenv("RM2FB_ACTIVE") != nullptr) { + setenv("RM2FB_NESTED", "1", true); + } else { + setenv("RM2FB_ACTIVE", "1", true); + } if (fb.mem == nullptr) { std::cout << "No rm2fb shared memory\n";