Hyprland: Rofi auto focus not work after upgrade to hyprland version 0.37.1

Hyprland Version

System/Version info
Hyprland, built from branch HEAD at commit c5e28ebcfe00a510922779b2c568cfa52a317445  (props: bump ver 0.37.1).
Date: Sat Mar 16 14:51:49 2024
Tag: v0.37.1

flags: (if any)


System Information:
System name: Linux
Node name: void
Release: 6.6.22_1
Version: #1 SMP PREEMPT_DYNAMIC Fri Mar 15 23:56:15 UTC 2024


GPU information:
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7) (prog-if 00 [VGA controller])


os-release: NAME="Void"
ID="void"
PRETTY_NAME="Void Linux"
HOME_URL="https://voidlinux.org/"
DOCUMENTATION_URL="https://docs.voidlinux.org/"
LOGO="void-logo"
ANSI_COLOR="0;38;2;71;128;97"

DISTRIB_ID="void"


plugins:

Bug or Regression?

Bug

Description

Hey i newly upgraded my hyprland version to 0.37.1 and eveything works perfectly even the steam freeze bug fixed at this version but rofi menu will not auto focus on launch until i hover my cursor on it. here is this video :

https://github.com/hyprwm/Hyprland/assets/89181937/c48025b1-0c48-4ad2-8330-084ae9c3e7f0

os : void linux

i installed all of required packages for hyprland : hyprland-protocols xorg-server-xwayland xdg-desktop-portal-hyprland xdg-desktop-portal xdg-utils wayland wayland-protocols xdg-desktop-portal-wlr xdg-desktop-portal-gtk

How to reproduce

my hyprland configs :

.dots-hyprland

Crash reports, logs, images, videos

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 months ago
  • Reactions: 6
  • Comments: 17 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Have you tried the wayland fork of rofi? The fork never had issues on Hyprland for me.

I just tried plain rofi out of curiosity. It doesn’t use fractional scale, has blur rendering artifacts at borders and corners and has the focus issue you described. I’d strongly recommend checking out the fork.

A quick fix if someone needs it. You can manually set focus to the rofi window after a short delay with hyprctl dispatcher.

Example: bind = [superkey], [key], exec, [rofi script path or command] & sleep 0.2; hyprctl dispatch focuswindow "^(Rofi)"

Not fixed. Window is focused but not activated for keyboard input. Adding

windowrulev2 = forceinput,class:(Rofi)

brings no change. @vaxerski any idea? The rofi wayland fork brings more side effects with waybar. so want to stick with rofi.

I moved to Wayland rofi as well and fixed the issues. Could solve all waybar sideeffects in my dotfiles.

hyprland will refuse focus to OR surfaces that don’t explicitly allow it. Input sniffing (like in rofi’s case) is exploiting Xorg and won’t be supported.

Fixed it with rofi by adding the windowrule

windowrulev2 = stayfocused,class:(Rofi)

Instead of creating a delay, you can just use the focuswindow disbatcher:

<rofi_keybind>, focus, window, title:(rofi), floating

I’m also using this window rule: windowrulev2 = stayfocused, class:(Rofi)

This seemed to work for me

Have you tried the wayland fork of rofi? The fork never had issues on Hyprland for me.

I just tried plain rofi out of curiosity. It doesn’t use fractional scale, has blur rendering artifacts at borders and corners and has the focus issue you described. I’d strongly recommend checking out the fork.

I had the same issue and confirm that moving to the Wayland fork of Rofi fixed the issue.