Dear Michal,
2015-02-06 15:02 GMT+06:00 Michal Sojka <sojk...@fel.cvut.cz>:
> I need to configure on which screen Stellarium starts so I put together
> the following patch. I haven't found what is the patch submitting
> procedure, so feel free to point me to the right place.
We use bazaar for development of the Stellarium -
https://code.launchpad.net/stellarium and receive patches with different
ways - through branches in bazaar, patches in the bug reports, forum's
messages and e-mails.
> On multi-screen setups, Stellarium always starts on primary screen. This
>
patch adds a configuration-file option to configure the screen where
> Stellarium appears. This option is only effective if fullscreen=true. In
> windowed mode, the used screen depends on screen_x and screen_y options.
>
> This was tested on Linux and Windows on top of 0.13.2 and it compiles
> with the current HEAD.
>
Thank you for the patch but... you should add modifications in the code for
the both cases - fullscreen and windowed mode.
> [video]
> fullscreen = true
> +fullscreen_num = 0
>
Maybe screen number will be more predictable here?
> + QRect screenGeom = desktop->screenGeometry(screen);
> + move(QPoint(screenGeom.x(), screenGeom.y()));
> + resize(screenGeom.width(), screenGeom.height());
>
Why you use resize() here? This code will be switch Stellarium to "expanded
windowed mode" - not a fullscreen mode. Plus how about multiscreen for X11
users?
--
WBW, Alex
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Stellarium-pubdevel mailing list
Stellarium-pubdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel