Windows is not refreshed on linux
Opened this issue · 5 comments
Hello
When a mail is received the windows content is not refreshed (at least on linux running oracle jdk 1.8).
Only way to force the refresh is to resize the window.
Looking at the code I see that the gui operations are not done in the dispatch thread as it should be from what I remember in swing, not sure how to fix this cleanly in the meantime I'm forcing a repaint of the mainpanel (ugly) but that fixes the issue.
Thanks, which window/desktop manager are you using?
Cinnamon on Linux Mint 17.2
Is this still an issue? Out of curiosity I built this on a similar OS - Mint 17.3 (64 bit), Cinnamon 2.8.8, Java 1.8.0_92. Ran an integration test sending 5 emails, with and without delay. The window seems to display emails as they're being processed; I'm not sure if I'm duplicating the scene.
To be honest I only run my forked version with my fix ...
But in any case I believe your code is incorrect because as I said you're not doing the repaint operations in the event dispatch thread.
you can have a look to ymartineau/peers#13