Hello,
Further to what I sent yesterday, I have been playing with the code and figured out a few things: -Setting a position on the default stage that is not on the primary monitor is not supported - despite my best attempts at doing so, the window will still always show up on the primary monitor. -The only way to have a borderless window seems to be by using the fullscreen flag - this then has the added effect of only going fullscreen on the primary monitor, regardless of the previous position of the window. 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. Because of this, none of the signalling mechanisms seem to work, and even the repaints fail because I have no idea how to trigger them from my own WindowProc function. Is there perhaps some better support for what I am trying to do in any of the later development snapshots? Thanks Mark T From: [email protected] [mailto:[email protected]] On Behalf Of Mark Tucker Sent: 23 August 2010 14:10 To: [email protected] Subject: Creating a clutter app that is fullscreen on a secondary display -win32 Hello, I was wondering if anyone had tried getting a clutter app to successfully display fullscreen on a secondary monitor on windows. On Linux (although I haven't tried) it seems like doing so would be as easy as using clutter_x11_set_display. On windows the options appear to be limited to achieve this - my guess here is that I'd have to use the Windows API to find the available monitors and their dimensions, create the stage using said dimensions and then again use the Windows API (e.g. ChangeDisplaySettingsEx) to set it to fullscreen on the secondary display. Or, could I create a fullscreen window on the secondary display using the Windows API and then pass the handle to clutter using clutter_win32_set_stage_foreign before I call clutter_main() - (or would I have to call it before clutter_init?) Any insight into the best way to approach this would be appreciated. Thanks Mark T
_______________________________________________ clutter-app-devel-list mailing list [email protected] http://lists.clutter-project.org/listinfo/clutter-app-devel-list
