Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember window position of the OpenTTD application #4721

Closed
DorpsGek opened this issue Aug 11, 2011 · 6 comments
Closed

Remember window position of the OpenTTD application #4721

DorpsGek opened this issue Aug 11, 2011 · 6 comments
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Jubilee opened the ticket and wrote:

When in window mode (game options, screen resolution, not fullscreen), it would be nice if the window position was remembered between sessions.

Reported version: Version?
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/4721
@DorpsGek
Copy link
Member Author

Jubilee wrote:

Hi Alberth.

Since i'm not a developer, there's not much i can do with the attached file in #3900 but thanks for pointing me to it anyway. Do you know if there are any plans for such a feature in a future OTTD build?


This comment was imported from FlySpray: https://bugs.openttd.org/task/4721#comment10179

@DorpsGek
Copy link
Member Author

Alberth wrote:

I doubt it, at least in the near future.

The problem with these settings is that they are game-specific. That means they have to be saved in the save-game, which means they will get distributed to all players in a multi-player game, which means all those players will get the same initial window positions.

That gives trouble due to different people having different ideas of where to put windows, as well as technical problems like people having different sizes of screens, thus windows potentially ending up either outside the physical screen, or all on top of each other (if you move them back to the visible area).

In addition, I see no reason to exclude full screen.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4721#comment10180

@DorpsGek
Copy link
Member Author

Jubilee wrote:

Well, perhaps the solution in #3900 is implemented in a different way than what i had in mind. Here's what i was talking about:

PART OF openttd.cfg:
[win32]
display_hz = 0
force_full_redraw = false
fullscreen_bpp = 32
window_maximize = false

In there, there could be an XPOS and a YPOS setting, to store the position of the main window. All the points you express in the above message are valid but in this case, would the X/YPOS settings have to be saved in the game too?


This comment was imported from FlySpray: https://bugs.openttd.org/task/4721#comment10183

@DorpsGek
Copy link
Member Author

Alberth wrote:

Now I understand what you mean.
I thought you were talking about windows inside OpenTTD (which is why I considered this issue a duplicate of #3900), but you are talking about the OpenTTD application window itself.
Sorry for the confusion.

As for implementing, obviously the same kind of technical problems are still valid, except at OS level rather than inside OpenTTD. They arise when you copy an openttd.cfg file between users or computers.
Also, in general, you'd want to have this functionality at all the platforms supported by OpenTTD. At the Linux platform, I am quite sure some window managers will not care about what an application wants, thus making your feature impossible. For the other operating systems (including Windows in its various forms), I wouldn't know whether this is feasible. Every operating system has to be handled specifically.

Leaving the issue open, so people with a better understanding of operating system details can have a look.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4721#comment10186

@DorpsGek
Copy link
Member Author

Jubilee wrote:

2 Alberth

Yes, i was talking about the main application's window, thanks for reopening. From what i know, there shouldn't be a problem in any version of Windows (desktop). As for Linux, i don't know...


This comment was imported from FlySpray: https://bugs.openttd.org/task/4721#comment10187

@DorpsGek
Copy link
Member Author

andythenorth closed the ticket.

Reason for closing: Duplicate

https://bugs.openttd.org/task/6229 also covers same issue, with some more details. Thanks.


This comment was imported from FlySpray: https://bugs.openttd.org/task/4721

@DorpsGek DorpsGek added component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) duplicate labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: interface This is an interface issue flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant