From 85f49f4d6c9c398428117e9bdb588f53f09e52e0 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Thu, 16 Mar 2023 15:21:55 +0000 Subject: [PATCH] fix share picker region H coord --- hyprland-share-picker/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyprland-share-picker/main.cpp b/hyprland-share-picker/main.cpp index 5029534..b354641 100644 --- a/hyprland-share-picker/main.cpp +++ b/hyprland-share-picker/main.cpp @@ -153,7 +153,7 @@ int main(int argc, char* argv[]) { button->resize(321, 41); QObject::connect(button, &QPushButton::clicked, [=]() { auto REGION = execAndGet("slurp -f \"%o %x %y %w %h\""); - REGION = REGION.substr(0, REGION.length() - 1); + REGION = REGION.substr(0, REGION.length()); // now, get the screen QScreen* pScreen = nullptr;