From eff5d619ebd3ff888e471d20def7be2d7aa476ac Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 25 Feb 2026 01:08:05 +0100 Subject: [PATCH] Fix incorrect manpage --- gpu-screen-recorder.1 | 2 +- src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gpu-screen-recorder.1 b/gpu-screen-recorder.1 index ea377d2..7741729 100644 --- a/gpu-screen-recorder.1 +++ b/gpu-screen-recorder.1 @@ -209,7 +209,7 @@ A value of 0 means to use the best option available. .BI \-region " WxH+X+Y" Specify region to capture when using .BR \-w " region." -Format is width x height + X offset + Y offset. Use 0x0 for full monitor. +Format is width x height + X offset + Y offset. Set width and height to 0 to capture the whole monitor that contains the position. It is compatible with tools such as slop (X11) and slurp (Wayland). .TP diff --git a/src/main.cpp b/src/main.cpp index 2c3acbe..3b20df0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3564,7 +3564,7 @@ static void set_display_server_environment_variables() { const char *wayland_display = getenv("WAYLAND_DISPLAY"); if(!wayland_display) { - wayland_display = "wayland-1"; + wayland_display = "wayland-0"; setenv("WAYLAND_DISPLAY", wayland_display, true); } }