slurp icon indicating copy to clipboard operation
slurp copied to clipboard

Crosshairs

Open tmccombs opened this issue 4 years ago • 12 comments

This is based on https://github.com/emersion/slurp/pull/56, but has been rebased on master, and fixed some issues I found while testing (mostly around outputs that don't start at the origin).

tmccombs avatar Sep 26 '21 06:09 tmccombs

When moving the crosshairs between monitors, sometimes this happens:

https://user-images.githubusercontent.com/20397027/136587209-404f481f-5ef8-42b8-8def-31ed37cb14d5.mp4

ammgws avatar Oct 08 '21 15:10 ammgws

When moving the crosshairs between monitors, sometimes this happens:

That's unfortunate. I'm not entirely sure why that happens. Reverting 0eeba3ae32eaecc2c36a6bfb5df363880c9adf91 fixes, it. That does mean we mark the outputs as dirty more often than necessary. I'd have to investigate more to see if there is a better way to handle that.

tmccombs avatar Oct 10 '21 07:10 tmccombs

By the way do you have merge permissions or does this still require @emersion's approval first?

ammgws avatar Oct 16 '21 05:10 ammgws

I have merge permissions, but I would like it to be reviewed by someone else before merging.

tmccombs avatar Oct 16 '21 17:10 tmccombs

Reverting 0eeba3a fixes, it. That does mean we mark the outputs as dirty more often than necessary. I'd have to investigate more to see if there is a better way to handle that.

Any luck with this? Or perhaps this could still be shipped since it doesn't seem like a showstopper, especially since crosshairs are not enabled by default.

ammgws avatar Jan 28 '22 15:01 ammgws

No, I haven't investigated it any more yet. (But the revert is on this branch).

tmccombs avatar Jan 28 '22 16:01 tmccombs

Ok, I think I've got better checks on when to mark outputs as dirty now. I was just missing a condition in an if statements one of the places where seat_set_outputs_dirty was called.

tmccombs avatar Feb 01 '22 08:02 tmccombs

This has been working well for me, thanks!

ammgws avatar Mar 09 '22 14:03 ammgws

@emersion any objection to merging this?

tmccombs avatar Mar 11 '22 04:03 tmccombs

@tmccombs any luck?

ammgws avatar Dec 16 '23 01:12 ammgws

I've resolved the conflicts.

tmccombs avatar Dec 29 '23 06:12 tmccombs

I've been using this locally for a while from a manual build and I've been super happy with it. Thanks for putting it together @tmccombs!

alexmaras avatar Apr 23 '24 11:04 alexmaras