Skip to content
Commit ed3f9b4c authored by Anton Anikin's avatar Anton Anikin
Browse files

Fix grabbing for multi-screen configurations

The old version always uses the primary screen to capture the image. This
leads to problems for some variants of multi-screen configurations. For
example, my system uses 2 displays, the primary screen is on the right,
but the "zero" of cursor position corresponds to the top-left corner of
the left screen. This leads to the grabbing of some "garbage" when moving
the cursor on the right (primary) screen, and to the grabbing of the right
screen content when moving the cursor on the left screen -- looks like
madness :).

The new version selects the correct screen corresponding to the cursor
position and also uses relative (to the selected screen) coordinates
instead of absolute ones to grabbing the image.

(cherry picked from commit d8e6757b)
parent 511e0974
Pipeline #287911 passed with stage
in 43 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment