Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: OS system tray is sometimes drawn on full screen RenderWin  (Read 1231 times)

0 Members and 1 Guest are viewing this topic.

GaborKovacs

  • Newbie
  • *
  • Posts: 13
    • View Profile
OS system tray is sometimes drawn on full screen RenderWin
« on: October 05, 2011, 08:42:53 am »
So far I've been using SFML 1.6 with C++, and recently I've tried the .NET binding of version 2.0: this problem seems to have remained.

If I create a full screen RenderWindow, clear it (all white), (and maybe draw an intro-screen), display it and wait, sometimes the Win XP system tray appears at the bottom. This does not happen often, approximately 1 time out of 10, so it may be due to some subtle timing/initialization issue.

My current solution is to keep redrawing the title screen in a loop (with vertical sync on). While it appears to be a waste of resources to redraw the same static screen numerous times, this has worked so far: if the system tray appeared on one of the frames, the next frame made it go away, so the user could only see a single flash of the system tray.

Recently, however, on a single occasion, the very same code produced a different result. Despite the redrawing loop (with some animation), the system tray persisted for about a second. It was either redrawn on top of the RenderWindow each frame, or the RenderWindow was unable to clear it. I've been wondering if this could happen at other times (i.e. not right after starting the application): that would be rather disturbing.

Is there a way to make sure the system tray does not ever appear on top of my full screen application?

Thanks for your help in advance,

Gabor