Does SDL have Wayland support? If so, it might be simpler to just use Ghost SDL for Wayland.
--Mitchell Stokes On Thu, Nov 28, 2013 at 9:47 AM, Wander Lairson Costa < wander.lair...@gmail.com> wrote: > Hi, > > I've been trying to implement wayland support for ghost [1]. While > implementing fullscreen support, I noticed that the gears test > application often crashes when switching back to the normal mode. > > This is what happens: > > * I press 'F' key and a new window is created and goes fullscreen. > * The window is displayed fullscreen. > * Wayland periodically sends me 'redraw' events. > * Everytime I receive a 'redraw' event from wayland, I push an > 'WindowUpdate' event. > * When I press 'F' again, the key event is pushed to the event queue. > * I receive a 'redraw' event from wayland, then I push an 'WindowUpdate' > event. > * The 'F' key event is dispatched and the fullscreen window is destroyed. > * The 'WindowUpdate' is dispatched, but the event now carries an > invalid window object. > * Eventually the application crashes. > > So, what happens to pending events when the Window is destroyed? If I > understood correctly, the events remains on the event queue, but I > think I am missing something here. > > Ideas? > > [1] https://github.com/walac/blender-wayland > > -- > Best Regards, > Wander Lairson Costa > _______________________________________________ > Bf-committers mailing list > Bf-committers@blender.org > http://lists.blender.org/mailman/listinfo/bf-committers > _______________________________________________ Bf-committers mailing list Bf-committers@blender.org http://lists.blender.org/mailman/listinfo/bf-committers