Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyprlock has delayed focus after waking up from suspend to RAM #700

Open
ogisan-7 opened this issue Mar 2, 2025 · 3 comments
Open

Hyprlock has delayed focus after waking up from suspend to RAM #700

ogisan-7 opened this issue Mar 2, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@ogisan-7
Copy link

ogisan-7 commented Mar 2, 2025

Regression?

No

Hyprlock Info and Version

Hyprlock version v0.7.0

Hyprlock config
general {
    grace = 0
    hide_cursor =  true
    no_fade_in = true
    no_fade_out = true
    ignore_empty_input = true
}

auth {
    pam:enabled = true
}

background {
    monitor = DP-1
    color = rgba(25, 23, 36, 1)  # Base color (dark background)
}

input-field {
    monitor = DP-1
    size = 20%, 5%
    outline_thickness = 1
    inner_color = rgba(25, 23, 36, 0.0)  # Transparent inner color
    placeholder_text = type here

    outer_color = rgba(235, 188, 186, 1)  # Rose color for outer border
    check_color = rgba(156, 207, 216, 1)  # Pine color for check
    fail_color = rgba(235, 111, 146, 1)   # Fail color (reddish)
    fail_text = password incorrect

    dots_rounding = 0
    dots_text_format = *
    dots_fade_time = 0
    dots_center = false

    font_color = rgb(224, 222, 244)  # Text color (light)
    fade_on_empty = false
    rounding = 0

    position = 0, -20
    halign = center
    valign = center
    font_family = Iosevka Term
}

label {
    monitor = DP-1
    text = cmd[] uname --kernel-release
    color = rgba(224, 222, 244, 1.0)  # Text color (light)
    font_size = 16
    font_family = Iosevka Term 

    position = 0, -150
    halign = center
    valign = center
}

label {
    monitor = DP-1
    text = cmd[update:1000] date +"%H:%M"
    color = rgba(156, 207, 216, 1.0)  # Pine color for time
    font_size = 55
    font_family = Iosevka Term 
    position = 0, 250
    halign = center
    valign = center
}

label {
    monitor = DP-1
    text = $USER
    color = rgba(235, 188, 186, 1.0)  # Rose color for username
    font_size = 25
    font_family = Iosevka Term

    position = 0, 80
    halign = center
    valign = center
}

shape {
    monitor = DP-1
    size = 40%, 35%
    position = 0, 0
    color = rgba(25, 23, 36, 0)  # Transparent background
    rounding = 0
    border_size = 1
    border_color = rgba(224, 222, 244, 0.8)  # Light border color
}

Compositor Info and Version

System/Version info
Hyprland 0.47.0 built from branch main at commit 01f4074421059006b44b97cda00094a318e63d5f  (hyprctl/layers: print pid for layershell clients (9468)).
Date: Wed Feb 26 16:03:06 2025
Tag: v0.47.0-103-g01f40744, commits: 5845
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.1
 hyprcursor 0.1.11
 hyprgraphics 0.1.2


no flags were set


System Information:
System name: Linux
Node name: ognjen-pc
Release: 6.13.5-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Thu, 27 Feb 2025 18:09:44 +0000


GPU information: 
06:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU116 [GeForce GTX 1660 SUPER] [10de:21c4] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  570.124.04  Tue Feb 25 04:12:12 UTC 2025


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:

Description

When waking up from suspend, hyprlock doesn't immediatly take focus on the input field. Mouse is visible even though it's disabled in config.
When I wait for 2 seconds, it automatically focuses, or when I move the mouse manually anywhere, it focuses.
It's not a big deal and I don't know if this is a bug even, but it's kinda annoying.

How to reproduce

Suspend, wait for a bit wake up your PC.

Crash reports, logs, images, videos

No response

@ogisan-7 ogisan-7 added the bug Something isn't working label Mar 2, 2025
@PaideiaDilemma
Copy link
Collaborator

Hyprland bug, but yes I also encounter that from time to time.
Will look into it at some point.

@andrepatta
Copy link

I think this is a big deal because it allows you to input any keystroke in the app that was focused just before you suspend to ram.

For example, having a terminal focused and suspending to ram allow anyone to input commands to your terminal in a few seconds window while hyper lock isn’t focused.

@PaideiaDilemma
Copy link
Collaborator

I think this is a big deal because it allows you to input any keystroke in the app that was focused just before you suspend to ram

Thanks for making that clear. Must be a weird code path in hyprland, cause focusing a window when locked is not allowed already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants