Bug 506963

Summary: KRITA_USE_NATIVE_CANVAS_SURFACE=1 renders canvas at wrong position in subwindows multi document mode
Product: [Applications] krita Reporter: Ming Chuan <ming>
Component: * UnknownAssignee: Krita Bugs <krita-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ming Chuan 2025-07-12 18:18:47 UTC
SUMMARY

After subwindow is dragged to a new position, krita still renders canvas at the old position.

STEPS TO REPRODUCE
1. Run krita with `KRITA_USE_NATIVE_CANVAS_SURFACE=1`
2. Make sure "subwindow" is selected in krita config (General -> Window -> Multiple Document Mode)
3. Open a document
4. "unmaximize" the file by clicking on the second button out of 3 buttons at top right corner
5. Click on the title bar of the subwindow, drag it.
6. Observe that canvas is still being rendered at old position

Let me know if you have trouble reproducing or understanding the issue, I can take screenshot/video if needed.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS

Wayland, synced right past [Rewrite Krita's zoom and pan infrastructure (!2423) · Merge requests · Graphics / Krita · GitLab](https://invent.kde.org/graphics/krita/-/merge_requests/2423)

ADDITIONAL INFORMATION