aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2024-01-02 00:50:07 +0100
committerdec05eba <dec05eba@protonmail.com>2024-01-02 00:50:07 +0100
commit33e90e2eb31612a5078852f341800c8da7c01bd3 (patch)
tree4a70810825770de6e251228a1b05b5d39299dfc2
parent8ef3c84f03cbcdc2c29007c5d423f93caa7b3aff (diff)
m
-rw-r--r--src/config.hpp7
-rw-r--r--src/main.cpp11
2 files changed, 0 insertions, 18 deletions
diff --git a/src/config.hpp b/src/config.hpp
index 9232541..20614aa 100644
--- a/src/config.hpp
+++ b/src/config.hpp
@@ -31,7 +31,6 @@ struct MainConfig {
std::string framerate_mode;
bool advanced_view = false;
bool overclock = false;
- bool wayland_warning_shown = false;
};
struct StreamingConfig {
@@ -278,11 +277,6 @@ static Config read_config(bool &config_empty) {
config.main_config.overclock = true;
else if(value == "false")
config.main_config.overclock = false;
- } else if(key == "main.wayland_warning_shown") {
- if(value == "true")
- config.main_config.wayland_warning_shown = true;
- else if(value == "false")
- config.main_config.wayland_warning_shown = false;
} else if(key == "streaming.service") {
config.streaming_config.streaming_service.assign(value.str, value.size);
} else if(key == "streaming.key") {
@@ -370,7 +364,6 @@ static void save_config(const Config &config) {
fprintf(file, "main.framerate_mode %s\n", config.main_config.framerate_mode.c_str());
fprintf(file, "main.advanced_view %s\n", config.main_config.advanced_view ? "true" : "false");
fprintf(file, "main.overclock %s\n", config.main_config.overclock ? "true" : "false");
- fprintf(file, "main.wayland_warning_shown %s\n", config.main_config.wayland_warning_shown ? "true" : "false");
fprintf(file, "streaming.service %s\n", config.streaming_config.streaming_service.c_str());
fprintf(file, "streaming.key %s\n", config.streaming_config.stream_key.c_str());
diff --git a/src/main.cpp b/src/main.cpp
index a3d723e..f42caf6 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2896,17 +2896,6 @@ static void load_config(const gpu_info &gpu_inf) {
return;
}
}
-
- if(wayland && !config.main_config.wayland_warning_shown) {
- config.main_config.wayland_warning_shown = true;
- save_configs();
-
- GtkWidget *dialog = gtk_message_dialog_new(GTK_WINDOW(window), GTK_DIALOG_MODAL, GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
- "Use of GPU Screen Recorder on Wayland is not recommended since Wayland compositors are missing features that GPU Screen Recorder relies on, such as window capture, global hotkeys, and other future functionality.\n"
- "Use X11 if you want to have access to all of the features provided by GPU Screen Recorder.");
- gtk_dialog_run(GTK_DIALOG(dialog));
- gtk_widget_destroy(dialog);
- }
}
static bool gl_get_gpu_info(gsr_egl *egl, gpu_info *info) {