Bug 453271 - Certain methods of mouse movement break canvas input usage, for example by using xdotool
Summary: Certain methods of mouse movement break canvas input usage, for example by us...
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: Shortcuts and Canvas Input Settings (show other bugs)
Version: 5.0.6
Platform: Appimage Linux
: NOR minor
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: triaged
Depends on: 454256
Blocks:
  Show dependency treegraph
 
Reported: 2022-05-01 19:25 UTC by tomtomtomreportingin
Modified: 2022-05-23 08:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomtomtomreportingin 2022-05-01 19:25:01 UTC
SUMMARY
In Krita 5.0.5 and 5.0.6, using xdotool (https://manpages.ubuntu.com/manpages/trusty/man1/xdotool.1.html) to move the mouse will break canvas input usage, until the dockers/menus are interacted with or alt-tab is used. It's possible this is related to other cases of canvas input breakage, for example as described in  https://old.reddit.com/r/krita/comments/ufw4x3/krita_506_shift_space_and_mouse_right_click/ , especially as this breakage does NOT occur in Krita 5.0.2.

STEPS TO REPRODUCE
0. Install xdotool
1. Create an executable bash script with the following code:

#!/bin/bash
# requires xdotool package
xdotool mousemove 1080 700

2. Bind the executable script to a DE shortcut.
3. Move Krita to the right half of your screen.
4. While cursor is over Krita, execute the script using the DE shortcut.
5. Attempt to use any canvas input shortcut.

OBSERVED RESULT
Nothing happens.

EXPECTED RESULT
Canvas input shortcuts should still be usable.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.90.0
Qt Version: 5.12.12 (appimage)
Comment 1 sh_zam 2022-05-05 07:26:02 UTC
I can't reproduce this :(. The keys I bound this to were: Ctrl+d and Super+b, non of them broke canvas input shortcuts. Maybe I can try this on KDE plasma, what is the shortcut key you mapped your script to? 

My System info:

Krita

 Version: 5.1.0-prealpha (git 5dd2ecf)
 Languages: en_US, en, en_US, en, en_US, en, en_US, en
 Hidpi: true

Qt

  Version (compiled): 5.15.3
  Version (loaded): 5.15.3

OS Information

  Build ABI: x86_64-little_endian-lp64
  Build CPU: x86_64
  CPU: x86_64
  Kernel Type: linux
  Kernel Version: 5.14.21-2-MANJARO
  Pretty Productname: Manjaro Linux
  Product Type: manjaro
  Product Version: unknown
  Desktop: i3
Comment 2 tomtomtomreportingin 2022-05-05 16:42:26 UTC
I initially encountered this using Alt + Space for my mouse movement script, but whatever keys I decide to change them to seemed to cause breakage from the script regardless.
Comment 3 tomtomtomreportingin 2022-05-05 19:24:35 UTC
Oh, it seems I CAN'T reproduce the issue when binding it to Ctrl + D, but I CAN reproduce the issue when binding it to Meta + B, so it might be key-specific in some weird way.