aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
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) {