Skip to content

fix: multi-monitor window highlighting in slurp capture#6122

Open
Liran-shternberg wants to merge 1 commit into
basecamp:devfrom
Liran-shternberg:fix-multi-monitor-slurp-capture
Open

fix: multi-monitor window highlighting in slurp capture#6122
Liran-shternberg wants to merge 1 commit into
basecamp:devfrom
Liran-shternberg:fix-multi-monitor-slurp-capture

Conversation

@Liran-shternberg

@Liran-shternberg Liran-shternberg commented Jun 22, 2026

Copy link
Copy Markdown

Fixes multi-monitor window highlighting in slurp.

The Issue: get_rectangles() only queried the focused monitor. Moving the cursor to a second or third monitor slurp was blind to the windows of that monitor and the window capture feature didn't work(meaning you needed to click and drag manually).

The Fix:

Updated the logic to return geometries for all connected monitors.

Built an array of active workspace IDs across all screens and filtered the hyprctl clients list to match.

Optimized the data passing using jq --argjson.

Copilot AI review requested due to automatic review settings June 22, 2026 21:23

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants