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

Window switcher breaks looking up windows when an unknown window class exists #107

Conversation

hackartists
Copy link

  • Issue
    • If an unknown window class exists, window-switcher extension will be broken
$ wmctrl -l -x
0x05800008  0 N/A                   hackartist-archlinux Emulator
0x05800005  0 N/A                   hackartist-archlinux Android Emulator - femu:5554
  • Therefore, this PR wraps handleQuery with error handling.
    • Practically, splitting window class raises an error.
    • However, I would say that the kind of crash can be raised on others.
    • That is why I wraps the whole code with try-except

* Issue
  * If an unknown window class exists, window-switcher extension will be broken

```
$ wmctrl -l -x
0x05800008  0 N/A                   hackartist-archlinux Emulator
0x05800005  0 N/A                   hackartist-archlinux Android Emulator - femu:5554
```

* Therefore, this PR wraps `handleQuery` with error handling.
  * Practically, splitting window class raises an error.
  * However, I would say that the kind of crash can be raised on others.
  * That is why I wraps the whole code with `try-except`
@ManuelSchneid3r
Copy link
Member

Please continue any discussion here: https://github.com/orgs/albertlauncher/discussions/1299

@albertlauncher albertlauncher locked and limited conversation to collaborators Aug 29, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants