InputManager: Fix touch monitor focus ordering

This commit is contained in:
Matteo Golinelli 2026-05-06 17:10:10 +02:00
parent 5f1350f522
commit fc63e74c2b
2 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ UP<CPropRefresher>& Supplementary::refresher() {
}
void CPropRefresher::scheduleRefresh(PropRefreshBits prop) {
static auto PZOOMFACTOR = CConfigValue<Config::FLOAT>("cursor.zoom_factor");
static auto PZOOMFACTOR = CConfigValue<Config::FLOAT>("cursor:zoom_factor");
m_propsTripped |= prop;
@ -102,4 +102,4 @@ void CPropRefresher::scheduleRefresh(PropRefreshBits prop) {
m_scheduled = true;
}
}
}

View file

@ -32,13 +32,13 @@ void CInputManager::onTouchDown(ITouch::SDownEvent e) {
PMONITOR = PMONITOR ? PMONITOR : Desktop::focusState()->monitor();
if (PMONITOR != Desktop::focusState()->monitor())
Desktop::focusState()->rawMonitorFocus(PMONITOR);
const auto TOUCH_COORDS = PMONITOR->m_position + (e.pos * PMONITOR->m_size);
refocus(TOUCH_COORDS);
if (PMONITOR != Desktop::focusState()->monitor())
Desktop::focusState()->rawMonitorFocus(PMONITOR);
if (m_clickBehavior == CLICKMODE_KILL) {
IPointer::SButtonEvent e;
e.state = WL_POINTER_BUTTON_STATE_PRESSED;