Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Mouse must move for window focus to change

Open outfoxxed opened this issue 1 year ago • 4 comments

Hyprland Version

System/Version info
Hyprland, built from branch main at commit 81fe2ae7f1da7578ac5208158c5bbc4d079effa3 dirty (surface: ensure global pointers valid before using in destructor (4844)).
Date: Mon Feb 26 01:52:12 2024
Tag: v0.35.0-101-g81fe2ae7

flags: (if any)

Bug or Regression?

Bug

Description

For any shell layer, session lock, or standard window, focus will not be changed to another window that covers it until the mouse is moved. This breaks anything that opens a menu in place and lets you click through session locks.

How to reproduce

Spawn a session lock or layer shell without moving the mouse from something clickable, then click it.

Crash reports, logs, images, videos

https://github.com/hyprwm/Hyprland/assets/83010835/65a1766e-5d7d-4207-8ef0-1aa45c49c088

outfoxxed avatar Feb 29 '24 02:02 outfoxxed

well with windows expected for follow_mouse != 1 xD

vaxerski avatar Feb 29 '24 02:02 vaxerski

I have follow_mouse = 1

input {
    kb_layout = us
    sensitivity = 0
    follow_mouse = 1
    mouse_refocus = false
    accel_profile = flat
}

outfoxxed avatar Feb 29 '24 02:02 outfoxxed

I would also expect that when the follow_mouse option is enabled that the window which is directly below the pointer would be focussed, not the window which has the latest mouse movement over it which it seems to be now?

Boris00035 avatar Feb 29 '24 13:02 Boris00035

Bump - same problem for me, but more serious in that entering my desktop password into swaylock resulted in that password being put into a chat window instead of unlocking the screen as expected.

github-usr-name avatar Mar 02 '24 10:03 github-usr-name