sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
271 stars 14 forks source link

Make main window appear in maximized size after startup #1750

Open PedanticHacker opened 1 year ago

PedanticHacker commented 1 year ago

Problem description

After Sublime Merge starts up, its main window appears in a variable-length (i.e., non-maximized) size. This is contrary to all other desktop applications, including Sublime Text, for which their main window appears in a maximized size.

Preferred solution

Make the main window of Sublime Merge to appear in a maximized size after startup.

Screenshots

The current main window of Sublime Merge after startup appears like this: Current Sublime Merge main window

The desired main window of Sublime Merge after startup should appear like this: Desired Sublime Merge main window

stinos commented 1 year ago

This is contrary to all other desktop applications, including Sublime Text, for which their main window appears in a maximized size.

For me that is not the case; like many other applications, Sublime Text and Sublime Merge start with the previously used location and size. Which can be maximized as well.

PedanticHacker commented 1 year ago

@stinos, that is simply not true, unfortunately. For me, at least on Windows 11, the main window of Sublime Merge always appears non-maximized after startup, even if its main window was maximized the last time I quit Sublime Merge.

Since as you say that Sublime Merge remembers the last position and size of its main window, then there’s probably a bug preventing to appear itself according to the its last state.

Which OS are you running Sublime Merge on and experiencing correct behavior?

stinos commented 1 year ago

Windows 10, Windows 7, Ubuntu.

However I think I found the actual issue: I can reproduce your case, but only when SM starts without repositories (like after having been closed after closing last repository). Then it indeed doesn't maximize. Which indeed it should. Can you confirm that if you close SM while maximized and at least one repository open, that it opens with the same size again for you as well?

PedanticHacker commented 1 year ago

Just tried it. Yes, this window size issue only occurs if you have no tabs and you are hence asked to clone a repository at startup. Otherwise, it works as expected.

PedanticHacker commented 1 year ago

But still, this is a bug. Even though you have no tabs open, the main window size should be remembered nevertheless. I would suggest here that the default behavior should be such that the main window size is maximized.