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

Add swallow/window icon compatibility #336

Merged
merged 3 commits into from
Feb 3, 2023
Merged

Conversation

ghost
Copy link

@ghost ghost commented Feb 2, 2023

Add swallow/window icon compatibility. Without this, after a client is swallowed the old icon (usually from the terminal emulator) is preserved. This is noticeable if you, say run mpv from a terminal emulator which is a common use case for the swallow patch.

This pull request fixes this by simply calling updateicon in swallow and unswallow, I have tested this and it works perfectly (unlike my last PR). I actually thought about just calling updateicon in updatetitle which would solve all of these issues but I'm not aware of any more issues so this will do I think.

swallowed the old icon (usually from the terminal emulator) is
preserved. This is noticeable if you, say run `mpv` from a terminal
emulator which is a common use case.
@bakkeby
Copy link
Owner

bakkeby commented Feb 2, 2023

Oh right, I forget that dwm-flexipatch is using the old swallow patch.

Can you correct the indentation to use tabs instead of spaces?

@ghost
Copy link
Author

ghost commented Feb 2, 2023

Done, I apologize, using spaces is a bad habit of mine!

@bakkeby bakkeby merged commit e206d65 into bakkeby:master Feb 3, 2023
@bakkeby
Copy link
Owner

bakkeby commented Feb 3, 2023

Thanks for the patch.

UtkarshVerma pushed a commit to UtkarshVerma/dwm that referenced this pull request Feb 19, 2023
* Add swallow/window icon compatibility. Without this, after a client is
swallowed the old icon (usually from the terminal emulator) is
preserved. This is noticeable if you, say run `mpv` from a terminal
emulator which is a common use case.

---------

Co-authored-by: speedie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants