i3expo-ng icon indicating copy to clipboard operation
i3expo-ng copied to clipboard

Sending two SIGUSR1s in quick succession causes focus to shift to workspace -1 (?) and stop responding

Open zarakshR opened this issue 3 years ago • 0 comments

If two or more SIGUSR1s are sent quickly one after the other, focus selects to workspace -1 and displays a loading cursor icon until workspace is manually switched back to workspaces 1..10 and - i3expod.py quits with either KeyError: -1 in File "/home/zaraksh/.local/bin/i3expod.py", line 110, in signal_show i3.command('workspace ' + global_knowledge["wss"][visible_ws_primary]['name'] +

or,

UnboundLocalError: local variable 'jump' referenced before assignment File "/home/zaraksh/.local/bin/i3expod.py", line 793, in show_ui if not jump:

To recreate - (About ~60% chance) killall -s SIGUSR1 i3expod.py && killall -s SIGUSR1 i3expod.py

killall -s SIGUSR1 i3expod.py && sleep 1 && killall -s SIGUSR1 i3expod.py killall -s SIGUSR1 i3expod.py && sleep 2 && killall -s SIGUSR1 i3expod.py do not recreate the issue

killall -s SIGUSR1 i3expod.py && sleep 0.5 && killall -s SIGUSR1 i3expod.py does, however

zarakshR avatar Mar 28 '21 21:03 zarakshR