mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-08 08:01:57 -07:00
fix mouse glitches on clicks in constrained
This commit is contained in:
@@ -156,6 +156,7 @@ void CInputManager::onMouseButton(wlr_pointer_button_event* e) {
|
|||||||
|
|
||||||
switch (e->state) {
|
switch (e->state) {
|
||||||
case WLR_BUTTON_PRESSED:
|
case WLR_BUTTON_PRESSED:
|
||||||
|
if (!g_pCompositor->m_sSeat.mouse->currentConstraint)
|
||||||
refocus();
|
refocus();
|
||||||
|
|
||||||
// if clicked on a floating window make it top
|
// if clicked on a floating window make it top
|
||||||
@@ -352,7 +353,6 @@ void CInputManager::recheckConstraint(SMouse* pMouse) {
|
|||||||
if (!pMouse->currentConstraint)
|
if (!pMouse->currentConstraint)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const auto MOUSECOORDS = getMouseCoordsInternal();
|
|
||||||
const auto PREGION = &pMouse->currentConstraint->region;
|
const auto PREGION = &pMouse->currentConstraint->region;
|
||||||
|
|
||||||
if (pMouse->currentConstraint->type == WLR_POINTER_CONSTRAINT_V1_CONFINED) {
|
if (pMouse->currentConstraint->type == WLR_POINTER_CONSTRAINT_V1_CONFINED) {
|
||||||
|
Reference in New Issue
Block a user