This repository has been archived by the owner on Dec 18, 2024. It is now read-only.
Clients that exist on multiple tags are sometimes incorrectly displayed in the tag_preview widget #94
Labels
bug
Something isn't working
Problem Overview
If you view the tag_preview for a tag that contains client(s) on multiple tags, the tag_preview doesn't show correctly in some cases.
Demos
At 0:00, tag 1 has
discord
andwatch nvidia-smi
and tag 2 hascava
andzsh
. Everything works as expected at this point.At 0:08, I add
watch nvidia-smi
to tag 2 (so it is on tag 1 and 2)At 0:14, while on tag 2, I show that tag 2's tag_preview is correctly displayed. If the tag currently being viewed is the one you're attempting to view the tag_preview for (or was the last viewed tag which contains client(s) with multiple tags) then it displays correctly. (So hypothetically, if I were to switch to tag 3 at this point, tag 2's tag_preview would still display correctly.)
At 0:15, while still on tag 2, tag 1's
watch nvidia-smi
is completely missing from tag 1's tag_previewAt 0:19, I switch to tag 1, and show that tag 1's tag_preview is correct while viewing tag 1
At 0:21, while still on tag 1, I show that tag 2's tag_preview shows the content for
watch nvidia-smi
in the wrong place, obscuring the other clients in the tag_previewtag_preview_weirdness.mp4
Unlike the example above, if the geometry and position of the client is exactly the same between its tags, it shows correctly in all tag_previews. You can see here,
watch nvidia-smi
is tiled on the left of tag 1 and 2, and displayed on the left side of both tag 1 and tag 2's tag_preview, as expected:tag_preview_with_client_in_same_position.mp4
Another more severe example, with more clients. In this case,
zenmonitor
is the client on tags 4 and 7. You can see when on tag 4, viewing the tag_preview for tag 7, there is content fromchromium
, despitechromium
not even being on tag 4 or 7, and content fromzenmonitor
is missing. The tag_preview is completely mangled too. Same problem when on tag 7 and viewing tag_preview for tag 4, the tag_preview is completely mangled:tag_preview_example_2.mp4
Relevant configuration
The widget
The taglist is created with appropriate create_callback signals to show/hide the widget, all bog standard stuff
The text was updated successfully, but these errors were encountered: