From 3468554eb3ddeac3cbf079ad6ebf3c8a39efc2f2 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 24 Nov 2024 19:13:35 +0100 Subject: Allow running the ui on Wayland through XWayland --- README.md | 1 + depends/mglpp | 2 +- include/gui/SettingsPage.hpp | 14 +++++++------- src/gui/SettingsPage.cpp | 41 ++++++++++++++++++++++++----------------- src/main.cpp | 13 ++++++++----- 5 files changed, 41 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index e456bcd..4f6fec8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ # GPU Screen Recorder UI A fullscreen overlay UI for [GPU Screen Recorder](https://git.dec05eba.com/gpu-screen-recorder/about/) in the style of ShadowPlay.\ +The application is currently primarly designed for X11 but it can run on Wayland as well through XWayland, with some caveats because of Wayland limitations.\ Note: This software is still in early alpha. Expect bugs, and please report any if you experience them. Some are already known, but it doesn't hurt to report them anyways.\ You can report an issue by emailing the issue to dec05eba@protonmail.com. diff --git a/depends/mglpp b/depends/mglpp index 84a6eb5..9800cff 160000 --- a/depends/mglpp +++ b/depends/mglpp @@ -1 +1 @@ -Subproject commit 84a6eb51b0c54e8f2c5134ff9e3baf39f5da77cb +Subproject commit 9800cff631f1a82ee87005aabdefb3f5da7fadb5 diff --git a/include/gui/SettingsPage.hpp b/include/gui/SettingsPage.hpp index 29f6c1a..f18ff65 100644 --- a/include/gui/SettingsPage.hpp +++ b/include/gui/SettingsPage.hpp @@ -84,20 +84,20 @@ namespace gsr { std::unique_ptr create_settings(const GsrInfo &gsr_info); void add_widgets(const GsrInfo &gsr_info); - void add_page_specific_widgets(); + void add_page_specific_widgets(const GsrInfo &gsr_info); std::unique_ptr create_save_directory(const char *label); std::unique_ptr create_container_box(); std::unique_ptr create_container_section(); std::unique_ptr create_replay_time_entry(); std::unique_ptr create_replay_time(); - std::unique_ptr create_start_replay_automatically(); - std::unique_ptr create_save_replay_in_game_folder(); + std::unique_ptr create_start_replay_automatically(const GsrInfo &gsr_info); + std::unique_ptr create_save_replay_in_game_folder(const GsrInfo &gsr_info); std::unique_ptr