From 8109cc6beee540cf9c2e4aaa5241563b4e143e2d Mon Sep 17 00:00:00 2001
From: dec05eba <dec05eba@protonmail.com>
Date: Sat, 22 Jul 2023 03:19:07 +0200
Subject: Remove all monitors capture option on amd/intel

---
 src/main.cpp | 15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/main.cpp b/src/main.cpp
index f78330e..e5d721d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2072,14 +2072,9 @@ static GtkWidget* create_common_settings_page(GtkStack *stack, GtkApplication *a
     }
     const bool allow_screen_capture = wayland || nvfbc_installed || gpu_inf.vendor != GPU_VENDOR_NVIDIA;
     if(allow_screen_capture) {
-        if(!wayland) {
-            if(gpu_inf.vendor == GPU_VENDOR_NVIDIA)
-                gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors");
-            else
-                gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors (requires root access, may perform better)");
-
-            if(gpu_inf.vendor == GPU_VENDOR_NVIDIA)
-                gtk_combo_box_text_append(record_area_selection_menu, "screen-direct-force", "All monitors (for VRR. No cursor, may have driver issues. Only use with VRR monitors!)");
+        if(!wayland && gpu_inf.vendor == GPU_VENDOR_NVIDIA) {
+            gtk_combo_box_text_append(record_area_selection_menu, "screen", "All monitors");
+            gtk_combo_box_text_append(record_area_selection_menu, "screen-direct-force", "All monitors (for VRR. No cursor, may have driver issues. Only use with VRR monitors!)");
         }
 
         void *connection = NULL;
@@ -2645,9 +2640,9 @@ static void load_config(const gpu_info &gpu_inf) {
 
     if(!wayland && strcmp(config.main_config.record_area_option.c_str(), "window") == 0) {
         //
-    } else if(!wayland && strcmp(config.main_config.record_area_option.c_str(), "focused") == 0) {
+    } else if(!wayland && gpu_inf.vendor == GPU_VENDOR_NVIDIA && strcmp(config.main_config.record_area_option.c_str(), "focused") == 0) {
         //
-    } else if(!wayland && (strcmp(config.main_config.record_area_option.c_str(), "screen") == 0 || strcmp(config.main_config.record_area_option.c_str(), "screen-direct-force") == 0)) {
+    } else if(!wayland && gpu_inf.vendor == GPU_VENDOR_NVIDIA && (strcmp(config.main_config.record_area_option.c_str(), "screen") == 0 || strcmp(config.main_config.record_area_option.c_str(), "screen-direct-force") == 0)) {
         //
     } else {
         void *connection = NULL;
-- 
cgit v1.2.3-70-g09d2