baskerville / sxhkd

Simple X hotkey daemon
BSD 2-Clause "Simplified" License
2.78k stars 139 forks source link

sxhkd doesn't work unless a window is focused #256

Closed codic12 closed 3 years ago

codic12 commented 3 years ago

I'm developing a reparenting window manager, and on my setup using sxhkd for keybindings.

The problem is, sxhkd only seems to work if a window is focused. So, say I bind super+Return to open a terminal:

Is this a bug?

codic12 commented 3 years ago

This doesn't happen on bspwm so probably my wm needs to do something; but what?

codic12 commented 3 years ago

Figured it out: when you unmap a window and there's nothing on the screen left, you must revert the input focus to root:

self.conn
                .set_input_focus(xproto::InputFocus::POINTER_ROOT, screen.root, CURRENT_TIME)?
                .check()?;
codic12 commented 3 years ago

huh?

emanuele6 commented 3 years ago

@codic12 ignore it; it's probably a spambot https://github.com/baskerville/sxhkd/issues/216#issuecomment-932950183 quote:

Je suis absolument dépourvu ma situation me mes tres malhabile jai besoin d'assistance physiques Êtes-vous en mesure de me trouver un professionnel dans ma régions saguenay vous pouvez me téléphoner français +14188178056

Le sam. 2 oct. 2021 8 h 30 a.m., Pavel Hrdina @.***> a écrit : …

@baskerville https://github.com/baskerville pretty please can we merge this?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#216 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APJKERRZWX467KWPL75RQMTUE33N7ANCNFSM4T2QBL2A .