diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-15 20:10:00 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-15 20:10:00 +0200 |
commit | 7b1c546321785224ef0d2df4d2f392d8d292c37e (patch) | |
tree | 7d7585557e6c1c7edaf3a3eef47515b8a2bb0b85 /src/main.cpp | |
parent | 63a953e2f02e4b06196743dca210d518eaedec7a (diff) |
Show info why screencast session is not restore if -restore-portal-session yes is not used
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 3d577b4..acb4c83 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2197,8 +2197,13 @@ int main(int argc, char **argv) { replay_buffer_size_secs += std::ceil(keyint); // Add a few seconds to account of lost packets because of non-keyframe packets skipped } + // TODO: Remove strdup const char *window_str = strdup(args["-w"].value()); + if(!restore_portal_session && strcmp(window_str, "portal") == 0) { + fprintf(stderr, "gsr info: '-w portal' option used without '-restore-portal-session yes'. The previous screencast session will be ignored\n"); + } + bool wayland = false; Display *dpy = XOpenDisplay(nullptr); if (!dpy) { |