Bug 464447

Summary: The first stroke immediately after swapping layers always looks as if drawn with maximum pressure
Product: [Applications] krita Reporter: hizelhuzel
Component: Layer StackAssignee: Krita Bugs <krita-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: vitamorus.art
Priority: NOR    
Version First Reported In: 5.2.6   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description hizelhuzel 2023-01-18 12:56:44 UTC
SUMMARY
***
Normally the pressure I'm applying on my drawing tablet (one by wacom) is interpreted just fine.
But when I swap some layers by dragging a layer into another position in the layer stack and then draw a stroke immediately afterwards, it looks as if drawn with maximum pressure. This only affects the first stroke and happens only if the swapping is done by dragging and dropping (not when using the "move layer or mask up/down" buttons). 
***


STEPS TO REPRODUCE
1. create a new krita file
2. press 'Ins' to add a new layer on top of the layer stack
3. swap the newly created layer to the middle of the layer stack by dragging it one slot down with the mouse
4. (make sure you have selected any brush)
5. without pressing/clicking/selecting anything else, immediately draw a stroke with low pressure on the canvas
6. draw another stroke with the same pressure

OBSERVED RESULT
The stroke drawn in step 5 appears as if drawn with maximum pressure, while the stroke in step 6 is lighter (as it should be).

EXPECTED RESULT
Stroke 5 should look the same as stroke 6.
Comment 1 Vitamorus 2024-12-14 01:00:14 UTC
I can confirm this using 5.2.6 AppImage on Neon (how have I not noticed this until now?). It also happens when moving colors in the Palette docker around, so the hiccup might be related to drag-and-drop actions in general?