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

Author Topic: Multiple windows and order of polling message queues  (Read 1824 times)

0 Members and 1 Guest are viewing this topic.

dooz

  • Newbie
  • *
  • Posts: 1
    • View Profile
Multiple windows and order of polling message queues
« on: December 29, 2013, 01:29:52 am »
Hey,

I'm seeing something a bit weird in my application. I create 2 windows, and in my "main loop", I poll/process the events queues from both windows, but I noticed that if I don't poll the event queues in the same order as the windows were created, then I get rendering errors (on one window, nothing renders, on on the other window, which just displays a text, the font is messed up).

Even weirder is that if I set a breakpoint in the debugger before the first even queue is polled, then everything works as expected.

I'm running on OSX (and pretty sure the issue wasn't present on Windows, as I started developing on Windows, and first noticed this when I had gotten everything compiling/loading under OSX).

Has anyone else seen this? (The workaround is simple, I just want to know if this is a requirement, as I couldn't find anything relevant in the documentation).

Thanks,
  Magnus

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
Re: Multiple windows and order of polling message queues
« Reply #1 on: December 29, 2013, 07:20:54 pm »
I'm not aware of this. Have you a sscce ?
SFML / OS X developer