Skip to content

Focus not returned to active window upon unlocking #967

Description

@7sev7nsev7n7

Regression?

No

Hyprlock Info and Version

Hyprlock version v0.9.2

Hyprlock config
source = ~/.cache/wal/colors-hyprland.conf

general {
  ignore_empty_input = true
}

animations {
  animation = fadeIn, on, 2, linear
  animation = fadeOut, on, 2, linear
}

background {
  monitor =
  path = ~/.cache/wal/image
  color = rgba(0,0,0,0)
  blur_passes = 4
  blur_size = 4
  brightness = 0.8
}

label {
  shadow_passes = 4
  shadow_color = $background
  shadow_boost = 4

  monitor =
  text = cmd[update:1000] date -Iseconds
  text_align = center
  color = $foreground
  font_size = 32
  font_family = Iosevka
  position = 0, 32
}

label {
  shadow_passes = 4
  shadow_color = $background
  shadow_boost = 8

  monitor =
  text = cmd[update:10000] shuf -n 1 ~/.scripts/hypr/motd
  text_align = center
  color = $foreground
  font_size = 16
  font_family = Iosevka
  position = 0, -16
}

input-field {
  monitor =
  size = 300, 60
  outline_thickness = 2
  outer_color = $color1
  inner_color = $background
  font_color = $foreground
  font_family = Iosevka
  fade_on_empty = true
  fade_timeout = 1000
  placeholder_text = 
  rounding = 8
  fail_color = rgb(255,0,0)
  fail_text = 
  position = 0, 32
  valign = bottom
}

Compositor Info and Version

System/Version info
Hyprland 0.54.1 built from branch v0.54.1 at commit 4b07770b9ef1cceb2e6f56d33538aaffb9186b9c clean ([gha] Nix: update inputs).
Date: Tue Mar 3 21:06:41 2026
Tag: v0.54.1, commits: 6979

Libraries:
Hyprgraphics: built against 0.5.0, system has 0.5.0
Hyprutils: built against 0.11.0, system has 0.11.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.8, system has 0.6.8
Aquamarine: built against 0.10.0, system has 0.10.0

Version ABI string: 4b07770b9ef1cceb2e6f56d33538aaffb9186b9c_aq_0.10_hu_0.11_hg_0.5_hc_0.1_hlg_0.6
no flags were set


System Information:
System name: Linux
Node name: mirthe
Release: 6.19.6-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Wed, 04 Mar 2026 18:25:08 +0000

Libraries:
Hyprgraphics: built against 0.5.0, system has 0.5.0
Hyprutils: built against 0.11.0, system has 0.11.0
Hyprcursor: built against 0.1.13, system has 0.1.13
Hyprlang: built against 0.6.8, system has 0.6.8
Aquamarine: built against 0.10.0, system has 0.10.0



GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a68] (rev 01) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] [10de:25a2] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64  590.48.01  Release Build  (root@)  


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

Explicit sync: supported
GL ver: 3.2
Backend: drm

Monitor info:
	Panel eDP-1: 1920x1080, eDP-1 Chimei Innolux Corporation 0x1521  -> backend drm
		explicit ✔️
		edid:
			hdr ❌
			chroma ✔️
			bt2020 ❌
		vrr capable ✔️
		non-desktop ❌
		

Description

As the title suggests, Hyprlock successfully starts and locks the user session, blocking input to other windows and inputs. Upon entering the right user password, Hyprlock terminates and returns visibility to windows. But inputs are not returned to the last active window (or any, for that matter) until a keybind or dispatcher forces a window focus. I've attempted changing Hyprland's configurations for layers to not hog focus, and re-enabling focus fallback as those options had been disabled, however these attempts did not solve the issue.

How to reproduce

Simply run hyprlock in any way (terminal, bind) and unlock the screen. Focus/inputs are not returned to the active window until it is forcibly focused

Crash reports, logs, images, videos

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions