Bizarre window behavior



  • Basically I can't understand how new windows work in Vivaldi. They seem pretty bizarre or even random. Are there settings somewhere that I'm missing that can help with this?

    When I open Vivaldi for the first time, the window is (I think?) the size and position of the first-opened window from the last time I ran Vivaldi, as of when that window was closed. (If I open Vivaldi, open a second window, resize the second window, close the first window, and quit Vivaldi, the next time I open Vivaldi, the window is the size of the first window when I closed it in the previous session.) Desired behavior would be the size and position of the last-closed window.

    There's a significant lag (about a second) between when I hit command-N and when a new window actually appears.

    If I have a window open already and I open a new window, it displays my homepage (as per settings), but the window's size and position are (best I can tell) totally random. Desired/standard behavior would be for a new window to be the same size as the existing one, and staggered slightly to the right (or down and right, if it's short enough).

    If I don't have a window open already, and I open a new window, the window is randomly sized and positioned (it does not necessarily match either the last-closed window or the first-opened window), and it never shows my homepage (it shows "Start Page" instead). Desired behavior would be to show my homepage (as per settings) and be the size/position of the last-closed window.


  • Moderator

    @smurf I'll try to clarify Vivaldi's window behaviour as best as I can. It's not totally random, but it's also not totally consistent like the other major browsers either.

    Basically I can't understand how new windows work in Vivaldi. They seem pretty bizarre or even random. Are there settings somewhere that I'm missing that can help with this?

    There are no settings. Vivaldi should remember the correct window size and placement, like any other application.

    Under certain circumstances, Vivaldi seems to open a new window with its "default" window size. (I believe that this is the same size as the window you got when you launched Vivaldi for the very first time.)

    When I open Vivaldi for the first time, the window is (I think?) the size and position of the first-opened window from the last time I ran Vivaldi, as of when that window was closed. (If I open Vivaldi, open a second window, resize the second window, close the first window, and quit Vivaldi, the next time I open Vivaldi, the window is the size of the first window when I closed it in the previous session.) Desired behavior would be the size and position of the last-closed window.

    Yes. (We'll call this the "correct" window size.) I believe Vivaldi's behaviour in this case is consistent with Safari.

    There's a significant lag (about a second) between when I hit command-N and when a new window actually appears.

    Yes, because Vivaldi has to create a new window, then render its browser chrome like it would a web page. It seems slow, but it's actually much, MUCH faster than it used to be.

    If I have a window open already and I open a new window, it displays my homepage (as per settings), but the window's size and position are (best I can tell) totally random. Desired/standard behavior would be for a new window to be the same size as the existing one, and staggered slightly to the right (or down and right, if it's short enough).

    Most of the time, a new window will be the "correct" window size. However, sometimes, for some reason, it opens with the "default" window size instead, usually (but not always) centred in the screen.

    (FYI, If a "default" sized new window were to ever open, if you close and relaunch Vivaldi, it would start with the "correct" window size.)

    If I don't have a window open already, and I open a new window, the window is randomly sized and positioned (it does not necessarily match either the last-closed window or the first-opened window), and it never shows my homepage (it shows "Start Page" instead). Desired behavior would be to show my homepage (as per settings) and be the size/position of the last-closed window.

    Re: Window size - Yes. Most of the time, in this scenario, it opens a new window with its "default" window size. However, on occasion, I've been surprised when the "correct" window size comes up too.

    Re: Window contents - When you first launch Vivaldi, it should start with what's defined in the "Startup" settings, otherwise a new window is basically a new tab that opens with the "New Tab Page" preference that you defined in the "Tabs" settings. Behaviour is consistent for me.

    Edit: You're right. With all windows closed, Vivaldi opens a new window with a Start Page, not what's defined in the New Tab settings.
    (To confirm this, I configured Vivaldi to start up with the Home Page (vivaldi.com) and to open new tabs with a Blank Page.)

    I hope that my post confirms and clears things up a bit. These glitches and inconsistencies are longstanding issues with Vivaldi on macOS. There are many more windowing-related bugs too. Vivaldi knows that some macOS users find Vivaldi's behaviour in this regard maddening and frustrating. Hopefully they'll be able to come up with some fixes but I also suspect that many of the problems lie in libraries that Vivaldi uses to render its windows, not in code that Vivaldi developers have written themselves.


  • Moderator

    Vivaldi is definitely storing multiple window geometries. I tried the following sequences to check their behaviour:

    • Launch Vivaldi; Open a Second" window; Close the First window; Resize the Second window; Quit Vivaldi

    • Launch Vivaldi; Open a Second window; Resize the Second window; Close the First window; Quit Vivaldi

    • Launch Vivaldi; Resize the window; Quit Vivaldi

    • Launch Vivaldi; Close the First window; Open a New window; Resize the New Window; Quit Vivaldi

    In each case, I would relaunch Vivaldi to see what resizes would or wouldn't stick on startup and when opening a second window.

    In the process of testing, I was able to change the saved dimensions of what I called the "default" window size in my previous post, regrettably to something very distinct and unusable.

    I then tried to explicitly set the window sizes in my test cases with some AppleScript...

    tell application "Vivaldi"
        set bounds of front window to {100, 22, 1200, 800}
    end tell
    

    ... but I can't seem to get the desired geometries to always stick, even if I physically resize the window before running the script.

    The window geometries are also stored in the Vivaldi profile, not in a plist. Renaming/removing my profile resets the window geometries back to their defaults.



  • I find that I have to open new window 4 times to get the correct window size.
    When I open Vivaldi the first time, it is exactly like I was using it the previous time. If I need a new window, it will open up to something I have never used before size-wise. I have to do a <CTRL> "N" 4 times to get a window exactly like what I was using in the initial window.

    I normally use the browser max'd out vertically and just page width horizontally.
    The initial Vivaldi open is that size. Leaving this window open, I get the following:
    The next 3 Vivaldi windows will open up in a very small rectangle in size. The size of a small pop-up box.
    The next browser open will give me one like I am currently using.
    After that it's a weird random number generated version of windows. Sometimes a pattern of 2 normal windows and 1 screen size window. Sometimes it's 1 normal window and 1 screen size window. Sometimes it's an assortment of sizes.
    Vivaldi basically randomly decides what it wants to give you and you just have to keep opening windows until it gets it right.



  • @xyzzy There is also an issue with "minimize" - Vivaldi seems to monopolize the window manager og makes it impossible to change.
    This may be related to "Spaces" and "Maximize", but the only way out is to Quit Vivaldi and restart.


Log in to reply
 

Looks like your connection to Vivaldi Forum was lost, please wait while we try to reconnect.