shutter-project / shutter

Screenshot tool for Linux
https://shutter-project.org/
GNU General Public License v3.0
538 stars 35 forks source link

Not all backgroung movements can be undone #685

Open Mingun opened 3 months ago

Mingun commented 3 months ago

Brief summary of issue

Sometimes because of mouse jitter when drawing selection I accidently move image. After that it is impossible to undo that action, instead the drawing action is undone.

Rarely image not moved by several pixels, but top-left corner jumped under mouse location.

Steps to reproduce the issue

  1. Select tool for drawing (rectangle, ellipsis, text)
  2. When drawing quickly unpress and press again mouse button. I think, that will be hard to reproduce manually, so some scripting may be required. In reality that is performed accidently due to mouse button jitter
  3. You will move image
  4. Press Ctrl+Z
  5. The last drawing action will be undone instead of image movement

Error output

Cannot say. There is not visible GUI windows and I run shutter not from the terminal.

Extra information, such as Shutter version, display server in use (Xorg or Wayland), operating system and ideas for how to solve:

Shutter version: 0.99.2 Rev.1593 Display server: Xorg OS: Ubuntu 22.04.4 LTS

Photon89 commented 3 months ago

I tried to reproduce it but didn't manage to, so far... If you can specify step by step one possibility to reproduce it, it would make things easier! :smiley:

Mingun commented 3 months ago

Unfortunately, I cannot, because this is unwanted random process. I speculate, that it can be reproduced if use some tools for scripting user actions, AutoHotKey or similar and make a very quick mouse release followed by mouse press while you are drawing rectangle. On mouse up it should stop drawing rectangle, on mouse press start dragging image. After that try to undone the last action