mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 07:31:53 -07:00
input: avoid using the wrong surface in drag focus force
This commit is contained in:
@@ -189,7 +189,7 @@ void CInputManager::mouseMoveUnified(uint32_t time, bool refocus) {
|
|||||||
|
|
||||||
if (!m_sDrag.drag && !m_lCurrentlyHeldButtons.empty() && g_pCompositor->m_pLastFocus) {
|
if (!m_sDrag.drag && !m_lCurrentlyHeldButtons.empty() && g_pCompositor->m_pLastFocus) {
|
||||||
if (m_bLastFocusOnLS) {
|
if (m_bLastFocusOnLS) {
|
||||||
foundSurface = g_pCompositor->m_pLastFocus;
|
foundSurface = m_pLastMouseSurface;
|
||||||
pFoundLayerSurface = g_pCompositor->getLayerSurfaceFromSurface(foundSurface);
|
pFoundLayerSurface = g_pCompositor->getLayerSurfaceFromSurface(foundSurface);
|
||||||
if (pFoundLayerSurface) {
|
if (pFoundLayerSurface) {
|
||||||
surfacePos = g_pCompositor->getLayerSurfaceFromSurface(foundSurface)->position;
|
surfacePos = g_pCompositor->getLayerSurfaceFromSurface(foundSurface)->position;
|
||||||
|
Reference in New Issue
Block a user