Skip to content

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

@zarakshR

Description

@zarakshR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions