tablet: do not lock focus when dnd-ing (#11390)

This commit is contained in:
Maxime Nordier 2025-08-10 18:51:14 +02:00 committed by GitHub
parent 00da4450db
commit 69c3ab1a49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,6 +6,7 @@
#include "../../managers/PointerManager.hpp"
#include "../../managers/SeatManager.hpp"
#include "../../protocols/PointerConstraints.hpp"
#include "../../protocols/core/DataDevice.hpp"
static void unfocusTool(SP<CTabletTool> tool) {
if (!tool->getSurface())
@ -136,7 +137,7 @@ void CInputManager::onTabletAxis(CTablet::SAxisEvent e) {
}
m_lastInputTouch = false;
if (!PTOOL->m_isDown)
if (!PTOOL->m_isDown || PROTO::data->dndActive())
simulateMouseMovement();
refocusTablet(PTAB, PTOOL, true);
m_lastCursorMovement.reset();