--- a/src/mainwindow.cpp Sun Jul 25 13:49:37 2021 +0300 +++ b/src/mainwindow.cpp Sun Jul 25 16:26:38 2021 +0300 @@ -214,6 +214,13 @@ connect(document, &Document::splitterChanged, this, &MainWindow::handleDocumentSplitterChange); connect(document, &Document::mouseClick, this, &MainWindow::canvasMouseReleased); connect(document, &Document::mouseMove, this, &MainWindow::canvasMouseMoved); + document->setCanvasOverpaintCallback([&](Canvas* canvas, QPainter* painter) + { + if (this->selectedTool != nullptr) + { + this->selectedTool->overpaint(canvas, painter); + } + }); } void MainWindow::runSettingsEditor()