Mousepad sometimes takes a while to quit
I'm trying to use thunar with devour, which is an application that hides the thunar window when I launch another application from thunar, in this case it is mousepad. Once I close mousepad the thunar window comes back.
In the case of mousepad sometimes I have to wait 5 to 10 seconds for the thunar window to show back.
After troubleshooting by launching mousepad from the terminal, the issue is that sometimes mousepad hangs for that long when being closed and takes 5 to 10 seconds to quit, that causes devour to think that I still have the window open and not show thunar back.
It is very random which makes me think it is a bug, I may add 50 lines of text to a file and mousepad quits in less than 1 second or I may just edit 1 line and mousepad takes 5 seconds to exit.
Update: This issue is caused by having clipman open, here's a demonstration:
I first remove/add a bunch of text to a file (clipman is not running). I do this twice, mousepad has not trouble quitting instantly.
Then at the end I start clipman, open mousepad again and copy and paste one line of text on mousepad, just one.
That causes mousepad to take exactly 10 seconds to quit when the window is closed.