Application window refreshing only on mouse movement. Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Ksawery
Experienced Solver
Experienced Solver
Posts: 83
Joined: Thu Jul 25, 2019 12:31 pm

Re: Application window refreshing only on mouse movement.

Post by Ksawery »

I've tried re-installing the application on Linux Mint, instead of Ubuntu Cinnamon Remix, and the problem still persists.

It seems to only occur after a system reboot. The application will not refresh until the mouse is hovered over it. However, the application starts to work normally when it's restarted (no mouse hover needed for refresh). Any suggestions as to why this might only occur on the first application launch, but not subsequent ones? Any potential fixes?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Application window refreshing only on mouse movement.

Post by ONEEYEMAN »

Hi,
No suggestions.
But try to remove the updating thread and see if this fixes it.

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19116
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: Application window refreshing only on mouse movement.

Post by doublemax »

I installed Ubuntu Cinnamon Remix in a vm and tested with a small demo that updates a text from a timer, and it refreshed fine. So there must be something in your code that's responsible.

You may have to strip down your code as much as possible in order to create a minimal, compilable sample that shows the problem.
Use the source, Luke!
Ksawery
Experienced Solver
Experienced Solver
Posts: 83
Joined: Thu Jul 25, 2019 12:31 pm

Re: Application window refreshing only on mouse movement.

Post by Ksawery »

After replacing the "refresh" threads with timers, the problem disappeared. For some reason, the refresh events were not being queued properly by the detached threads, especially after system reboot.

Thank you very much for your help and Happy New Year :)
Post Reply