-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pinned screenshot on linux can't be moved outside the screen #1786
Comments
@borgmanJeremy I checked with Manjaro KDE and Flameshot v0.10.1 and it does not go out side of the screen. There has been a feature request (#984) for this and it has been reported that it works on Windows but back then I tried with Flameshot v0.9.0 and0 I could not reproduce the behavior on Windows either. At the moment I don't have access to Windows machine to test this, but I wonder if this is something that can be addressed (unified across all platforms we support). I am puzzled and not sure to consider this discrepancy as a bug or partial feature request 😅 |
I looked into this and it is not possible to move a widget off screen on X11 :( . https://forum.qt.io/topic/106141/move-qwidget-offscreen-on-linux I also independently tested this by hard coding negative coordinates. We can probably do some sort of cropping operation to give the illusion of moving it off the screen, but not sure how complicated that will be yet. |
@borgmanJeremy is it intentional to get cropped at a fraction of the rate of mouse movement (the mouse position drastically changes with respect to the pinned image)? |
Nope, thats the bug I need to fix before merging :-) |
@mmahmoudian what do you think the behavior should be in a multimonitor setup? We can either start truncating the pinned image when it moves past the edge of a screen (Easy) |
@borgmanJeremy at least on Plasma I can already move the pin from one monitor to another and I actually use that alot when I want to have side-by-side comparison. So I think I have missed what you are asking here. |
It's okay, I think you answered my question |
@borgmanJeremy but isn't that managed by the window manager? |
@borgmanJeremy I'm not aware of the limitations, so here is just my possibly flawed understanding: in X11 all monitors together create a large rectangular "canvas" and at the moment the pin window can move between monitors and also can practically go outside of the monitor region if and only if another monitor has expanded the "canvas". I think all we need to do is to detect the width and height of the "canvas" and create the illusion only when the pin window is pushed outside of this canvas. In the figure below the monitors are two gray rectangles, the circumference of the "canvas" is marked by gray dashed line, the pinned image is in magenta, the cropped area of the pin is in camouflage pattern, If my understanding and the work-around is correct, then:
|
@mmahmoudian Can you confirm that that is how it works on X11? I dont have a mixed monitor setup. |
@borgmanJeremy I did that before making the figures. The full pink rectangles are where I can already position the pin (Manjaro KDE Plasma) Now I also tested it on AwesomeWM. It seems in AwesomeWM it can easily move outside of the monitor and also even the "canvas". I didn't know how to record all monitors at the same time, but I tried to create a tall pinned image and move it around to show the behavior. 2021-09-15.19-30-10.mp4 |
Flameshot version
Version 0.10.1
Describe the bug
On Windows pinned screenshots can be moved outside the screen but on linux they cannot.
To Reproduce
Expected behavior
I expected the same behaviour on linux as on windows.
It would be nice to be able to move a screenshot outside the screen like on Windows so it doesn't obstruct anything while I don't need it but still want to keep it pinned for later use.
System Information
Ubuntu 20.10 Groovy
The text was updated successfully, but these errors were encountered: