Gustash / Hyprshot

Hyprshot is an utility to easily take screenshots in Hyprland using your mouse.
GNU General Public License v3.0
249 stars 19 forks source link

Window mode does not recognize windows in second monitor #51

Open yotamco100 opened 1 month ago

yotamco100 commented 1 month ago

Just installed hyprshot using git clone, configured it, and ran into an issue screenshotting windows on my secondary monitor.

On one monitor, with the terminal opened, the debug output of hyprshot -m window -d is:

Clients: [
  {
    "mapped": true,
    "hidden": false,
    "at": [
      22,
      52
    ],
    "size": [
      1876,
      1006
    ],
    "workspace": {
      "id": 1,
      "name": "1"
    },
    "floating": false,
    "monitor": 0,
    "class": "kitty",
    "title": "hyprshot -m window -d",
    "initialClass": "kitty",
    "initialTitle": "zsh",
    "pid": 60718,
    "xwayland": false,
    "pinned": false,
    "fullscreen": false,
    "fullscreenMode": 0,
    "fakeFullscreen": false,
    "grouped": [],
    "swallowing": "0x0",
    "focusHistoryID": 0
  }
]
Boxes:
22,52 1876x1006 hyprshot -m window -d
Geometry: 
Crop: , x

on the second monitor with a terminal and Chrome opened:

Clients: []
Boxes:

invalid box format: 

Geometry: 
Crop: , x
ProMix0 commented 1 month ago

Geometry: Crop: , x

It's strange unless you cancelled selection. But if you did, output should be like that:

... Boxes: 2887,52 931x1006 Window mode does not recognize windows in second monitor · Issue #51 · Gustash/Hyprshot — Mozilla Firefox 1942,52 931x1006 Alacritty selection cancelled Geometry: Crop: , x supplied geometry did not intersect with any outputs

Ensure that you have installed all dependencies (listed in README) and can take screenshot at all