mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-04 20:45:59 +01:00
sessionLock: don't send motion events on every surface commit (#8584)
This commit is contained in:
parent
e9a7fb8f91
commit
5329298b52
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ SSessionLockSurface::SSessionLockSurface(SP<CSessionLockSurface> surface_) : sur
|
||||||
listeners.commit = surface_->events.commit.registerListener([this](std::any data) {
|
listeners.commit = surface_->events.commit.registerListener([this](std::any data) {
|
||||||
const auto PMONITOR = g_pCompositor->getMonitorFromID(iMonitorID);
|
const auto PMONITOR = g_pCompositor->getMonitorFromID(iMonitorID);
|
||||||
|
|
||||||
if (mapped && pWlrSurface != g_pCompositor->m_pLastFocus)
|
if (mapped && !g_pCompositor->m_pLastFocus)
|
||||||
g_pInputManager->simulateMouseMovement();
|
g_pInputManager->simulateMouseMovement();
|
||||||
|
|
||||||
if (PMONITOR)
|
if (PMONITOR)
|
||||||
|
|
Loading…
Reference in a new issue