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

Invoking any hotkey temporarily loses window focus #315

Open
kleutzinger opened this issue Oct 19, 2023 · 0 comments
Open

Invoking any hotkey temporarily loses window focus #315

kleutzinger opened this issue Oct 19, 2023 · 0 comments

Comments

@kleutzinger
Copy link

kleutzinger commented Oct 19, 2023

Observed behavior:

I have this configured in my .sxhkdrc:

F2
    notify-send "hi"

Example:
blur

Pressing F2 unfocuses (a.k.a. blurs) the window and then refocuses. It doesn't matter what the command is, the same behavior happens if the command is, say sleep 2. (Note: the keypress overlay and notfication are not grabbing focus themselves, they are for demonstrative purposes. even without the overlay/notif focus is still grabbed by sxhkd upon hotkey invocation)

Expected behavior:
Maintain focus on the active window (in this case, firefox) while sxhkd and the ensuing command is invoked.

Here a site to test window focus: https://www.proginosko.com/test/WindowFocusEvents.html

my specs:

~ ❯ sxhkd -v
0.6.2


                    /-                      kevin@think0 
                   ooo:                     ------------ 
                  yoooo/                    OS: ArcoLinux 
                 yooooooo                   Host: 20FAS4EG00 ThinkPad T460s 
                yooooooooo                  Kernel: 6.5.7-arch1-1 
               yooooooooooo                 Uptime: 1 day, 1 hour, 15 mins 
             .yooooooooooooo                Packages: 2013 (pacman), 7 (nix-user) 
            .oooooooooooooooo               Shell: fish 3.6.1 
           .oooooooarcoooooooo              Resolution: 2560x1440 
          .ooooooooo-oooooooooo             DE: Xfce 4.18 
         .ooooooooo-  oooooooooo            WM: Xfwm4 
        :ooooooooo.    :ooooooooo           WM Theme: Arc-Dark 
       :ooooooooo.      :ooooooooo          Theme: Adwaita-dark [GTK2], Arc-Dark [GTK3] 
      :oooarcooo         .oooarcooo         Icons: Adwaita [GTK2], Sardi-Arc [GTK3] 
     :ooooooooy           .ooooooooo        Terminal: kitty 
    :ooooooooo   /ooooooooooooooooooo       CPU: Intel i7-6600U (4) @ 3.400GHz 
   :ooooooooo      .-ooooooooooooooooo.     GPU: Intel Skylake GT2 [HD Graphics 520] 
  ooooooooo-             -ooooooooooooo.    Memory: 4.88GiB / 19.27GiB (25%) 
 ooooooooo-                 .-oooooooooo.   GPU Driver: i915 
ooooooooo.                     -ooooooooo   CPU Usage: 33% 
                                            Disk (/): 150G / 469G (34%) 
                                            Font: Noto Sans 13 [GTK2], Noto Sans 11 [GTK3] 
                                          
@kleutzinger kleutzinger changed the title Running any hotkey temporarily grabs window focus Invoking any hotkey temporarily loses window focus Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant