Hi Neil, That sounds like it would provide what I needed :)
In the meantime, I shall take a look at clutter-gtk and see what support that has and whether we can use that instead. Thanks Mark T -----Original Message----- From: Neil Roberts [mailto:[email protected]] Sent: 24 August 2010 15:24 To: Mark Tucker; [email protected] Subject: RE: Creating a clutter app that is fullscreen on a secondary display -win32 Hi, "Mark Tucker" <[email protected]> wrote: > Using clutter_win32_set_stage_foreign() allows me to supply a window > handle for clutter to use, so I can create a borderless window on my > secondary monitor using the Windows API and then supply this to > clutter, however this then causes me a major problem: the WindowProc > (callback for all windowing events) then has to be my own custom > handler, as opposed to the clutter handler, which then means that the > whole clutter events system doesn't work once I have clutter > displaying in this manner, which is not what I want. > > Is there some function in clutter that I can pass the parameters > received in the WindowProc callback to, such that it would be as if I > was using the standard clutter WindowProc? Having delved into the > clutter code the function in question is called > _clutter_stage_win32_window_proc(), in clutter-event-win32.c. We had an internal discussion about adding such a function to the Win32 backend recently because we need it for clutter-gtk. Previously clutter-gtk disabled event retrieval from Clutter and then manually converted the GDK events to Clutter events using clutter_event_put(). However in git master of clutter-gtk the X11 backend has changed to just forward all X events to Clutter via clutter_x11_handle_event. I will try to have a look at adding the equivalent function for the Win32 backend now. Hopefully that would be enough to fix your issues? Alternatively you may want to try using clutter-gtk instead of manually creating the window. It looks like GDK has some API for multi-head support so you may be able to use that to position a GtkWindow on to the second display and disable window decorations in a portable way. I think some older versions of clutter-gtk did work on Win32 but the recent git master will likely no longer work. I can hopefully try to fix that soon. Hope that helps - Neil _______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
