baskerville / sxhkd

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

xfce4 is blocking keys, if "rclick window" is showing #246

Open nngogol opened 3 years ago

nngogol commented 3 years ago

Hello @baskerville !

tldr: rclick menu blocks sxhkd in xfce4. 1 minute video explains all: https://drive.google.com/file/d/1Rd6y6yJM6itX-gdfVqniaVTBs7uN7Kbr/view?usp=sharing

Fresh xfce4 install. sxhkd config:

#!/bin/bash

F1
    sleep .2; \
    notify-send -t 1000 "reload sxhkd"; \
    pkill --signal SIGUSR1 sxhkd;
Print
    scrot /tmp/f1/ 1.png; \
    notify-send -t 2500 "at" "$bname"
super + Return 
    xfce4-terminal

When context menu shows up - it blocks sxhkd. Question:

OS: xubuntu 20.04.3 DE: Xfce WM: Xfwm4

ifohancroft commented 3 years ago

That's not a problem with sxhkd. If you set the shortcut for scrot from the DE's keyboard shortcuts the result would still be the same. For some reason, many DEs don't seem to pass the keyboard shortcut to the screenshot program (I am guessing to any program) when a context menu is open. My guess, is because you can have keyboard shortcuts for actions in the context menu. The workaround I've found, is to set a keyboard shortcut to scrot with a delay, execute it, then start the context menu.