Skip to content

Conversation

@zippoxer
Copy link

@zippoxer zippoxer commented Dec 2, 2025

Summary

  • Add xcap dependency for Linux (already used on macOS)
  • Rewrite unix.rs to use native X11 window capture instead of returning a 1x1 placeholder
  • Match windows by application name or title

The previous implementation returned a hardcoded 1x1 pixel image because Tauri 2.x's window.eval() doesn't return values on Linux.

Test plan

  • Tested in Docker with TigerVNC + openbox window manager
  • Screenshot captures correct window at specified dimensions
  • Window matching works by app name and title

🤖 Generated with Claude Code

The Unix screenshot implementation was returning a 1x1 placeholder image
because Tauri 2.x's window.eval() doesn't return values.

This fix:
- Adds xcap dependency for Linux (already used on macOS)
- Rewrites unix.rs to use xcap for native X11 window capture
- Matches windows by application name or title

Tested in Docker with VNC + openbox.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant