Describe the bug
Data races occur when switching between different windows, eventually crashing the dock.
Here are my logs: https://pastebin.com/tMLwMkAU
To Reproduce
Steps to reproduce the behavior:
Run the dock
Start switching between different windows (it takes a while)
The dock crashes
Expected behavior
Data races don't occur, and the dock doesn't crash.
Desktop:
Linux distribution: Fedora Workstation 40
Go version: go1.22.2 linux/amd64
gtk-layer-shell version: 0.8.2-3
Additional Context:
I commented out line 596 in tools.go for cleaner logs. Tried it with and without the comment, and it doesn't seem to affect the crash in any way.
Also, to see the data race warnings, you must build or run the dock with the go data race detector.
Describe the bug Data races occur when switching between different windows, eventually crashing the dock. Here are my logs: https://pastebin.com/tMLwMkAU
To Reproduce Steps to reproduce the behavior:
Expected behavior Data races don't occur, and the dock doesn't crash.
Desktop:
Additional Context: I commented out line 596 in tools.go for cleaner logs. Tried it with and without the comment, and it doesn't seem to affect the crash in any way. Also, to see the data race warnings, you must build or run the dock with the go data race detector.