aboutsummaryrefslogtreecommitdiff
path: root/src/Overlay.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-11-24 22:53:29 +0100
committerdec05eba <dec05eba@protonmail.com>2024-11-24 22:53:29 +0100
commita872c07f7a1a8d65ee507a33bac9b023d9d936b4 (patch)
tree080f5ba4ab435e531bbaa1c40fe9640dedbc7f48 /src/Overlay.cpp
parentb57bc8505d2c62d79ca1c980f902bde1cc4b3f99 (diff)
Dont allow running the program as the root user
Diffstat (limited to 'src/Overlay.cpp')
-rw-r--r--src/Overlay.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index 720bb2e..2475a77 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -1436,7 +1436,7 @@ namespace gsr {
mgl_context *context = mgl_get_context();
Display *display = (Display*)context->connection;
- if(is_compositor_running(display, 0))
+ if(gsr_info.system_info.display_server != DisplayServer::X11 || is_compositor_running(display, 0))
return false;
bool window_texture_loaded = false;